File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node)
41
41
{
42
42
foreach ( AttributeListSyntax attributes in node . AttributeLists )
43
43
{
44
- foreach ( AttributeSyntax attribute in attributes . Attributes )
44
+ if ( attributes . Target != null && attributes . Target . Identifier . Kind ( ) == SyntaxKind . FieldKeyword )
45
45
{
46
- if ( attributes . Target . Identifier . Kind ( ) == SyntaxKind . FieldKeyword )
46
+ foreach ( AttributeSyntax attribute in attributes . Attributes )
47
47
{
48
48
using ( ExpressionCaptureScope attributeTypeCapture = new ExpressionCaptureScope ( visitorContext , null ) )
49
49
{
Original file line number Diff line number Diff line change 1
1
2
+ using JetBrains . Annotations ;
2
3
using UdonSharp ;
3
4
using UnityEngine ;
4
5
using VRC . SDKBase ;
@@ -14,6 +15,7 @@ public class PropertyTest : UdonSharpBehaviour
14
15
15
16
public string MyStrProperty => "Test " + 1 ;
16
17
18
+ [ PublicAPI ]
17
19
public int MyIntProperty { get ; set ; }
18
20
19
21
float backingFloat ;
You can’t perform that action at this time.
0 commit comments