File tree 3 files changed +3
-3
lines changed
UnityUxmlGenerator.UnityPackage/Assets/Plugins/UnityUxmlGenerator/Runtime
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ protected BaseCapture(ClassDeclarationSyntax @class)
9
9
{
10
10
Class = @class ;
11
11
ClassName = @class . Identifier . Text ;
12
- ClassNamespace = @class . GetParent < NamespaceDeclarationSyntax > ( ) ! . Name . ToString ( ) ;
12
+ ClassNamespace = @class . GetParent < NamespaceDeclarationSyntax > ( ) ? . Name . ToString ( ) ;
13
13
}
14
14
15
15
public string ClassName { get ; }
16
- public string ClassNamespace { get ; }
16
+ public string ? ClassNamespace { get ; }
17
17
public abstract string ClassTag { get ; }
18
18
19
19
public ClassDeclarationSyntax Class { get ; }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public override void OnVisitSyntaxNode(SyntaxNode syntaxNode)
58
58
if ( _captures . TryGetValue ( @class ! . Identifier . Text , out var uxmlTraits ) == false )
59
59
{
60
60
uxmlTraits = new UxmlTraitsCapture ( @class , @class . BaseList ! . Types . First ( ) . Type ) ;
61
- _captures . Add ( @class . Identifier . Text , uxmlTraits ) ;
61
+ _captures . Add ( uxmlTraits . ClassName , uxmlTraits ) ;
62
62
}
63
63
64
64
uxmlTraits . Properties . Add ( ( property , GetAttributeArgumentValue ( attribute ) ) ) ;
You can’t perform that action at this time.
0 commit comments