示例#1
0
文件: Rewriter.cs 项目: jthelin/Nake
        public Rewriter(CSharpCompilation compilation, AnalyzerResult result)
        {
            tree = (CSharpSyntaxTree) compilation.SyntaxTrees.Single();
            model = compilation.GetSemanticModel(tree);

            this.compilation = compilation;
            this.result = result;
        }
示例#2
0
文件: Analyzer.cs 项目: legigor/Nake
 public AnalyzerResult Analyze()
 {
     result = new AnalyzerResult();
     tree.GetRoot().Accept(this);
     return(result);
 }