// 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.CSharp
{
///
/// 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 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 OpenBrace(BraceStyle style);
void CloseBrace(BraceStyle style);
void Indent();
void Unindent();
void NewLine();
void WriteComment(CommentType commentType, string content);
}
}