17 references to TryGetInferredMemberName
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder_Expressions.cs (1)
1201string name = syntax.TryGetInferredMemberName();
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (4)
31var inferredName = node.Expression.TryGetInferredMemberName(); 52var inferredName = node.Expression.TryGetInferredMemberName(); 74if (argument.NameColon is null && argument.Expression.TryGetInferredMemberName()?.Equals(name) == true) 96if (initializer.NameEquals is null && initializer.Expression.TryGetInferredMemberName()?.Equals(name) == true)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
113var inferredName = nameofArgument.TryGetInferredMemberName();
Microsoft.CodeAnalysis.CSharp.Features (2)
IntroduceVariable\CSharpIntroduceVariableService.Rewriter.cs (2)
49var inferredName = node.Expression.TryGetInferredMemberName(); 67var inferredName = node.Expression.TryGetInferredMemberName();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTests.cs (1)
183var actual = SyntaxFacts.TryGetInferredMemberName(expr);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Simplification\CSharpSimplificationService.Expander.cs (3)
257var inferredName = node.Expression.TryGetInferredMemberName(); 303elementName = argument.Expression?.TryGetInferredMemberName(); 326var inferredName = node.Expression.TryGetInferredMemberName();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (4)
31var inferredName = node.Expression.TryGetInferredMemberName(); 52var inferredName = node.Expression.TryGetInferredMemberName(); 74if (argument.NameColon is null && argument.Expression.TryGetInferredMemberName()?.Equals(name) == true) 96if (initializer.NameEquals is null && initializer.Expression.TryGetInferredMemberName()?.Equals(name) == true)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
113var inferredName = nameofArgument.TryGetInferredMemberName();