Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't show builder after dot #15564

Merged
merged 3 commits into from
Jan 4, 2017
Merged

Don't show builder after dot #15564

merged 3 commits into from
Jan 4, 2017

Conversation

rchande
Copy link
Contributor

@rchande rchande commented Nov 28, 2016

Tag @dotnet/roslyn-ide for review

// In the following situation, the type inferrer will infer Task to support target type preselection
// Action a = Task.$$
// We need to explicitly exclude invocation/member access from suggestion mode
var previousToken = token.GetPreviousTokenIfTouchingWord(position);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd much rather have the syntax check up front. Asking if we're in a locatoin where you could have an inferred lambda.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks. This actually looks way better.

@rchande
Copy link
Contributor Author

rchande commented Nov 29, 2016

Fixes #15443

@rchande
Copy link
Contributor Author

rchande commented Nov 29, 2016

retest windows_debug_unit32_prtest please

// We need to explicitly exclude invocation/member access from suggestion mode
var previousToken = token.GetPreviousTokenIfTouchingWord(position);
if (previousToken.IsKind(SyntaxKind.DotToken) &&
previousToken.Parent.IsKind(SyntaxKind.InvocationExpression, SyntaxKind.SimpleMemberAccessExpression))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dot token can't be parented by an invocation expression.

@rchande rchande merged commit 5a8bacc into dotnet:master Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants