File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node)
4141 {
4242 foreach ( AttributeListSyntax attributes in node . AttributeLists )
4343 {
44- foreach ( AttributeSyntax attribute in attributes . Attributes )
44+ if ( attributes . Target != null && attributes . Target . Identifier . Kind ( ) == SyntaxKind . FieldKeyword )
4545 {
46- if ( attributes . Target . Identifier . Kind ( ) == SyntaxKind . FieldKeyword )
46+ foreach ( AttributeSyntax attribute in attributes . Attributes )
4747 {
4848 using ( ExpressionCaptureScope attributeTypeCapture = new ExpressionCaptureScope ( visitorContext , null ) )
4949 {
Original file line number Diff line number Diff line change 11
2+ using JetBrains . Annotations ;
23using UdonSharp ;
34using UnityEngine ;
45using VRC . SDKBase ;
@@ -14,6 +15,7 @@ public class PropertyTest : UdonSharpBehaviour
1415
1516 public string MyStrProperty => "Test " + 1 ;
1617
18+ [ PublicAPI ]
1719 public int MyIntProperty { get ; set ; }
1820
1921 float backingFloat ;
You can’t perform that action at this time.
0 commit comments