예제 #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);
 }
예제 #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);
 }