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