public static CreateWriterThatSetsLocationsInAST ( |
||
writer | ||
indentation | string | |
return |
void AssertOutput(AstNode node) { RemoveTokens(node); StringWriter w = new StringWriter(); w.NewLine = "\n"; node.AcceptVisitor(new CSharpOutputVisitor(TokenWriter.CreateWriterThatSetsLocationsInAST(w), FormattingOptionsFactory.CreateSharpDevelop())); var doc = new ReadOnlyDocument(w.ToString()); ConsistencyChecker.CheckMissingTokens(node, "test.cs", doc); ConsistencyChecker.CheckPositionConsistency(node, "test.cs", doc); }