public MethodInvocationAnalyzerTests() { this.analyzer = AnalyzerFactory.GetMethodInvocationAnalyzer(); var converter = new String2IDocumentConverter(); this.document = (IDocument) converter.Convert(FileUtil.ReadAllText( TestUtil.GetFakeSourceFolder() + "ChangeMethodSignatureAfter.txt"), null, null, null); this.invocations = ((SyntaxNode)document.GetSyntaxRoot()). DescendantNodes().Where(i => i.Kind == SyntaxKind.InvocationExpression); this.logger = NLoggerUtil.GetNLogger(typeof(MethodInvocationAnalyzerTests)); }
internal InvocationsAddArgumentsRewriter(IEnumerable<SyntaxNode> invocations, IEnumerable<string> addedArguments) { this.invocations = invocations; this.addedArguments = addedArguments; this.analyzer = AnalyzerFactory.GetMethodInvocationAnalyzer(); }
internal AddReturnValueRewriter(SyntaxNode declaration, SyntaxNode invocation, String returnSymbolType, String returnSymbolName) { this.declaration = declaration; this.invocation = invocation; this.invokingMethod = GetOutSideMethod(invocation); this.returnSymbolType = returnSymbolType; this.returnSymbolName = returnSymbolName; this.methodNameComparer = new MethodNameComparer(); this.methodInvocationAnalyzer = AnalyzerFactory.GetMethodInvocationAnalyzer(); }