@@ -1086,11 +1086,11 @@ private static void FillExternalTypeName(
1086
1086
INamedTypeSymbol typeSymbol ,
1087
1087
Func < INamespaceSymbol , string , string > funcOfNamespace ,
1088
1088
Func < INamedTypeSymbol , string > funcOfTypeName ,
1089
- LuaSyntaxNodeTransform transfor = null ) {
1089
+ LuaSyntaxNodeTransform transform = null ) {
1090
1090
var externalType = typeSymbol . ContainingType ;
1091
1091
if ( externalType != null ) {
1092
- if ( transfor is { IsNoneGenericTypeCounter : true } && ! externalType . IsGenericType && ! typeSymbol . IsGenericType ) {
1093
- var curTypeDeclaration = transfor . CurTypeDeclaration ;
1092
+ if ( transform ? . IsNoneGenericTypeCounter == true && ! externalType . IsGenericType && ! typeSymbol . IsGenericType ) {
1093
+ var curTypeDeclaration = transform . CurTypeDeclaration ;
1094
1094
if ( curTypeDeclaration != null && curTypeDeclaration . CheckTypeName ( externalType , out var classIdentifier ) ) {
1095
1095
sb . Append ( classIdentifier . ValueText ) ;
1096
1096
sb . Append ( '.' ) ;
@@ -1116,9 +1116,9 @@ public static string GetTypeShortName(
1116
1116
this INamedTypeSymbol typeSymbol ,
1117
1117
Func < INamespaceSymbol , string , string > funcOfNamespace = null ,
1118
1118
Func < INamedTypeSymbol , string > funcOfTypeName = null ,
1119
- LuaSyntaxNodeTransform transfor = null ) {
1119
+ LuaSyntaxNodeTransform transform = null ) {
1120
1120
StringBuilder sb = new StringBuilder ( ) ;
1121
- FillExternalTypeName ( sb , typeSymbol , funcOfNamespace , funcOfTypeName , transfor ) ;
1121
+ FillExternalTypeName ( sb , typeSymbol , funcOfNamespace , funcOfTypeName , transform ) ;
1122
1122
string typeName = funcOfTypeName ? . Invoke ( typeSymbol ) ;
1123
1123
if ( typeName != null ) {
1124
1124
sb . Append ( typeName ) ;
0 commit comments