public Rewriter(CSharpCompilation compilation, AnalyzerResult result) { tree = (CSharpSyntaxTree) compilation.SyntaxTrees.Single(); model = compilation.GetSemanticModel(tree); this.compilation = compilation; this.result = result; }
public AnalyzerResult Analyze() { result = new AnalyzerResult(); tree.GetRoot().Accept(this); return(result); }