Пример #1
0
        public Rewriter(CSharpCompilation compilation, AnalyzerResult result)
        {
            tree = (CSharpSyntaxTree) compilation.SyntaxTrees.Single();
            model = compilation.GetSemanticModel(tree);

            this.compilation = compilation;
            this.result = result;
        }
Пример #2
0
 public AnalyzerResult Analyze()
 {
     result = new AnalyzerResult();
     tree.GetRoot().Accept(this);
     return(result);
 }