Skip to content

Commit

Permalink
[GH-30] - visual basic implementation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tpodolak committed Aug 24, 2018
1 parent 887b494 commit 41e9135
Show file tree
Hide file tree
Showing 10 changed files with 5,595 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ public CallInfoAnalyzer()

protected override SyntaxNode GetSubstituteCall(IMethodSymbol methodSymbol, InvocationExpressionSyntax invocationExpressionSyntax)
{
return invocationExpressionSyntax.Expression.DescendantNodes().First();
switch (methodSymbol.MethodKind)
{
case MethodKind.ReducedExtension:
return invocationExpressionSyntax.Expression.DescendantNodes().First();
case MethodKind.Ordinary:
return invocationExpressionSyntax.ArgumentList.Arguments.First().GetExpression();
default:
return null;
}
}

protected override IEnumerable<ExpressionSyntax> GetArgumentExpressions(InvocationExpressionSyntax invocationExpressionSyntax)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 41e9135

Please sign in to comment.