File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
UnityUxmlGenerator.UnityPackage/Assets/Plugins/UnityUxmlGenerator/Runtime Expand file tree Collapse file tree 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)
99 {
1010 Class = @class ;
1111 ClassName = @class . Identifier . Text ;
12- ClassNamespace = @class . GetParent < NamespaceDeclarationSyntax > ( ) ! . Name . ToString ( ) ;
12+ ClassNamespace = @class . GetParent < NamespaceDeclarationSyntax > ( ) ? . Name . ToString ( ) ;
1313 }
1414
1515 public string ClassName { get ; }
16- public string ClassNamespace { get ; }
16+ public string ? ClassNamespace { get ; }
1717 public abstract string ClassTag { get ; }
1818
1919 public ClassDeclarationSyntax Class { get ; }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public override void OnVisitSyntaxNode(SyntaxNode syntaxNode)
5858 if ( _captures . TryGetValue ( @class ! . Identifier . Text , out var uxmlTraits ) == false )
5959 {
6060 uxmlTraits = new UxmlTraitsCapture ( @class , @class . BaseList ! . Types . First ( ) . Type ) ;
61- _captures . Add ( @class . Identifier . Text , uxmlTraits ) ;
61+ _captures . Add ( uxmlTraits . ClassName , uxmlTraits ) ;
6262 }
6363
6464 uxmlTraits . Properties . Add ( ( property , GetAttributeArgumentValue ( attribute ) ) ) ;
You can’t perform that action at this time.
0 commit comments