File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Generator/Generators/CSharp Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -967,7 +967,7 @@ private string GeneratePointerTo(Variable var)
967
967
var libraryPath = GetLibraryOf ( var ) ;
968
968
969
969
if ( ! LibrarySymbols . TryGetValue ( libraryPath , out var lib ) )
970
- LibrarySymbols [ libraryPath ] = lib = new LibrarySymbolInfo ( libraryPath , Module . OutputNamespace + ".__Symbols" ) ;
970
+ LibrarySymbols [ libraryPath ] = lib = new LibrarySymbolInfo ( libraryPath , Module . OutputNamespace ) ;
971
971
972
972
var location = lib . GetFullVariablePath ( var . Mangled ) ;
973
973
@@ -976,9 +976,9 @@ private string GeneratePointerTo(Variable var)
976
976
if ( arrayType != null )
977
977
{
978
978
if ( arrayType . Type . IsPrimitiveType ( PrimitiveType . Char ) && arrayType . SizeType != ArrayType . ArraySize . Constant )
979
- WriteLine ( $@ "var { ptr } = { location } ;") ;
979
+ WriteLine ( $ "var { ptr } = { location } ;") ;
980
980
else
981
- WriteLine ( $@ "var { ptr } = ({ arrayType . Type . Visit ( TypePrinter ) } *){ location } ;") ;
981
+ WriteLine ( $ "var { ptr } = ({ arrayType . Type . Visit ( TypePrinter ) } *){ location } ;") ;
982
982
}
983
983
else
984
984
{
@@ -3567,9 +3567,9 @@ class LibrarySymbolInfo : TextGenerator
3567
3567
3568
3568
public LibrarySymbolInfo ( string path , string @namespace )
3569
3569
{
3570
- this . path = path ;
3571
- this . @namespace = @namespace ;
3570
+ this . path = path ;
3572
3571
@class = identifierCleanerRegex . Replace ( path , "_" ) ;
3572
+ this . @namespace = ( ! string . IsNullOrEmpty ( @namespace ) ? @namespace : @class ) + ".__Symbols" ;
3573
3573
}
3574
3574
3575
3575
public string Generate ( )
You can’t perform that action at this time.
0 commit comments