Beispiel #1
0
 private static void WriteLocalVariableTo(LocalVariableSymbol symbol, TextWriter writer)
 {
     writer.WriteKeyword(symbol.IsReadOnly ? "let " : "var ");
     writer.WriteIdentifier(symbol.Name);
     writer.WritePunctuation(": ");
     symbol.Type.WriteTo(writer);
 }
Beispiel #2
0
 private static void WriteLocalVariableTo(LocalVariableSymbol 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);
 }