public override DataFlowAnalysis AnalyzeDataFlow(LanguageSyntaxNode firstStatement, LanguageSyntaxNode lastStatement) { ValidateStatementRange(firstStatement, lastStatement); var context = RegionAnalysisContext(firstStatement, lastStatement); var result = new LanguageDataFlowAnalysis(context); return(result); }
public override DataFlowAnalysis AnalyzeDataFlow(LanguageSyntaxNode expression) { if (expression == null) { throw new ArgumentNullException(nameof(expression)); } if (!IsInTree(expression)) { throw new ArgumentException("expression not within tree"); } var context = RegionAnalysisContext(expression); var result = new LanguageDataFlowAnalysis(context); return(result); }