Пример #1
0
 private static void WriteGlobalVariableTo(GlobalVariableSymbol symbol, TextWriter writer)
 {
     writer.WriteKeyword(symbol.IsReadOnly ? "let " : "var ");
     writer.WriteIdentifier(symbol.Name);
     writer.WritePunctuation(": ");
     symbol.Type.WriteTo(writer);
 }
Пример #2
0
 private static void WriteGlobalVariableTo(GlobalVariableSymbol symbol, TextWriter writer)
 {
     writer.WriteKeyword(symbol.IsReadOnly ? SyntaxKind.LetKeyword : SyntaxKind.VarKeyword);
     writer.WriteIdentifier(symbol.Name);
     writer.WritePunctuation(SyntaxKind.ColonToken);
     writer.WriteSpace();
     symbol.Type.WriteTo(writer);
 }