-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
358 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...rimaryParameterSnapshotTests.DoGeneratesPC01WithDontUseOnPropertyBody/target.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: PC01, | ||
Title: Accessing a Primary Parameter, | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: : (3,13)-(3,14), | ||
MessageFormat: Can't access a primary parameter ('{0}') with a [Field] [RefField], [Property] or [DontUse] attribute, use {1}, | ||
Message: Can't access a primary parameter ('i') with a [Field] [RefField], [Property] or [DontUse] attribute, use , | ||
Category: tests | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
...meterSnapshotTests.DoGeneratesPC01WithDontUseOnPropertyGet/DontUseAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//HintName: DontUseAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)] | ||
sealed class DontUseAttribute : Attribute | ||
{ | ||
public bool AllowInMemberInit { get; init; } | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...otTests.DoGeneratesPC01WithDontUseOnPropertyGet/FaustVX.PrimaryParameter.SG.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//HintName: FaustVX.PrimaryParameter.SG.g.cs | ||
// <auto-generated/> | ||
partial class C | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
...rameterSnapshotTests.DoGeneratesPC01WithDontUseOnPropertyGet/FieldAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//HintName: FieldAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class FieldAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string AssignFormat { get; init; } | ||
public Type Type { get; init; } | ||
public bool IsReadonly { get; init; } | ||
public string Scope { get; init; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...eterSnapshotTests.DoGeneratesPC01WithDontUseOnPropertyGet/PropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//HintName: PropertyAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class PropertyAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string AssignFormat { get; init; } | ||
public Type Type { get; init; } | ||
public string Setter { get; init; } | ||
public string Scope { get; init; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...eterSnapshotTests.DoGeneratesPC01WithDontUseOnPropertyGet/RefFieldAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//HintName: RefFieldAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class RefFieldAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string Scope { get; init; } | ||
public bool IsReadonlyRef { get; init; } | ||
public bool IsRefReadonly { get; init; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...PrimaryParameterSnapshotTests.DoGeneratesPC01WithDontUseOnPropertyGet/target.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: PC01, | ||
Title: Accessing a Primary Parameter, | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: : (5,15)-(5,16), | ||
MessageFormat: Can't access a primary parameter ('{0}') with a [Field] [RefField], [Property] or [DontUse] attribute, use {1}, | ||
Message: Can't access a primary parameter ('i') with a [Field] [RefField], [Property] or [DontUse] attribute, use , | ||
Category: tests | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
...SnapshotTests.DontGeneratesPC01WithDontUseOnMember_Complex/DontUseAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//HintName: DontUseAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)] | ||
sealed class DontUseAttribute : Attribute | ||
{ | ||
public bool AllowInMemberInit { get; init; } | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ts.DontGeneratesPC01WithDontUseOnMember_Complex/FaustVX.PrimaryParameter.SG.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//HintName: FaustVX.PrimaryParameter.SG.g.cs | ||
// <auto-generated/> | ||
partial class C | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
...erSnapshotTests.DontGeneratesPC01WithDontUseOnMember_Complex/FieldAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//HintName: FieldAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class FieldAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string AssignFormat { get; init; } | ||
public Type Type { get; init; } | ||
public bool IsReadonly { get; init; } | ||
public string Scope { get; init; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...napshotTests.DontGeneratesPC01WithDontUseOnMember_Complex/PropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//HintName: PropertyAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class PropertyAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string AssignFormat { get; init; } | ||
public Type Type { get; init; } | ||
public string Setter { get; init; } | ||
public string Scope { get; init; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...napshotTests.DontGeneratesPC01WithDontUseOnMember_Complex/RefFieldAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//HintName: RefFieldAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class RefFieldAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string Scope { get; init; } | ||
public bool IsReadonlyRef { get; init; } | ||
public bool IsRefReadonly { get; init; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rSnapshotTests.DontGeneratesPC01WithDontUseOnMember_Simple/DontUseAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//HintName: DontUseAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)] | ||
sealed class DontUseAttribute : Attribute | ||
{ | ||
public bool AllowInMemberInit { get; init; } | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...sts.DontGeneratesPC01WithDontUseOnMember_Simple/FaustVX.PrimaryParameter.SG.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//HintName: FaustVX.PrimaryParameter.SG.g.cs | ||
// <auto-generated/> | ||
partial class C | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
...terSnapshotTests.DontGeneratesPC01WithDontUseOnMember_Simple/FieldAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//HintName: FieldAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class FieldAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string AssignFormat { get; init; } | ||
public Type Type { get; init; } | ||
public bool IsReadonly { get; init; } | ||
public string Scope { get; init; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...SnapshotTests.DontGeneratesPC01WithDontUseOnMember_Simple/PropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//HintName: PropertyAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class PropertyAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string AssignFormat { get; init; } | ||
public Type Type { get; init; } | ||
public string Setter { get; init; } | ||
public string Scope { get; init; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...SnapshotTests.DontGeneratesPC01WithDontUseOnMember_Simple/RefFieldAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//HintName: RefFieldAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] | ||
sealed class RefFieldAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
public string Scope { get; init; } | ||
public bool IsReadonlyRef { get; init; } | ||
public bool IsRefReadonly { get; init; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...hotTests.DontGeneratesPC01WithDontUseOnPropertyInitializer/DontUseAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//HintName: DontUseAttribute.g.cs | ||
// <auto-generated/> | ||
using global::System; | ||
namespace PrimaryParameter.SG | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)] | ||
sealed class DontUseAttribute : Attribute | ||
{ | ||
public bool AllowInMemberInit { get; init; } | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ntGeneratesPC01WithDontUseOnPropertyInitializer/FaustVX.PrimaryParameter.SG.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//HintName: FaustVX.PrimaryParameter.SG.g.cs | ||
// <auto-generated/> | ||
partial class C | ||
{ | ||
} |
Oops, something went wrong.