1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
6
namespace ICSharpCode.NRefactory.VB
9
/// Output formatter for the Output visitor.
11
public interface IOutputFormatter
13
void StartNode(AstNode node);
14
void EndNode(AstNode node);
17
/// Writes an identifier.
18
/// If the identifier conflicts with a keyword, the output visitor will
19
/// call <c>WriteToken("[")</c> before and <c>WriteToken("]")</c> after calling WriteIdentifier().
21
void WriteIdentifier(string identifier);
24
/// Writes a keyword to the output.
26
void WriteKeyword(string keyword);
29
/// Writes a token to the output.
31
void WriteToken(string token);
39
void WriteComment(bool isDocumentation, string content);