// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) using System; namespace ICSharpCode.NRefactory.VB { /// /// Output formatter for the Output visitor. /// public interface IOutputFormatter { void StartNode(AstNode node); void EndNode(AstNode node); /// /// Writes an identifier. /// If the identifier conflicts with a keyword, the output visitor will /// call WriteToken("[") before and WriteToken("]") after calling WriteIdentifier(). /// void WriteIdentifier(string identifier); /// /// Writes a keyword to the output. /// void WriteKeyword(string keyword); /// /// Writes a token to the output. /// void WriteToken(string token); void Space(); void Indent(); void Unindent(); void NewLine(); void WriteComment(bool isDocumentation, string content); void MarkFoldStart(); void MarkFoldEnd(); } }