97 references to MemberAccessExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (19)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
95
generator.
MemberAccessExpression
(
106
generator.
MemberAccessExpression
(
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
47
generator.
MemberAccessExpression
(
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
238
var taskFromResult = generator.
MemberAccessExpression
(taskTypeExpression, memberName);
264
return generator.
MemberAccessExpression
(left, right);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
145
return generator.
MemberAccessExpression
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (6)
105
var through = generator.
MemberAccessExpression
(
128
through = through is null ? name : generator.
MemberAccessExpression
(through, name);
171
through = generator.
MemberAccessExpression
(explicitImplementationCast,
200
: generator.
MemberAccessExpression
(
224
: generator.
MemberAccessExpression
(
351
var fieldAccess = factory.
MemberAccessExpression
(factory.ThisExpression(), factory.IdentifierName(fieldName))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
199
factory.
MemberAccessExpression
(
232
var thisSymbol = factory.
MemberAccessExpression
(factory.ThisExpression(), symbolNameExpression)
234
var otherSymbol = factory.
MemberAccessExpression
(localNameExpression, symbolNameExpression);
263
factory.
MemberAccessExpression
(
302
factory.
MemberAccessExpression
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (2)
225
var thisSymbol = factory.
MemberAccessExpression
(factory.ThisExpression(),
247
factory.
MemberAccessExpression
(
Microsoft.CodeAnalysis.CSharp.Features (1)
InitializeParameter\CSharpInitializeMemberFromParameterCodeRefactoringProvider.cs (1)
86
var left = (ArgumentSyntax)generator.Argument(generator.
MemberAccessExpression
(generator.ThisExpression(), generator.IdentifierName(fieldOrProperty.Name)));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.cs (10)
254
VerifySyntax<MemberAccessExpressionSyntax>(Generator.WithTypeArguments(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y<z>");
367
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x.y");
369
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
MemberAccessExpression
(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y.z");
370
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
MemberAccessExpression
(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z");
371
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
MemberAccessExpression
(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x[y].z");
372
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
MemberAccessExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "((x) + (y)).z");
373
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
MemberAccessExpression
(Generator.NegateExpression(Generator.IdentifierName("x")), Generator.IdentifierName("y")), "(-(x)).y");
426
Generator.ElementAccessExpression(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
471
VerifySyntax<InvocationExpressionSyntax>(Generator.InvocationExpression(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x.y()");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeGeneration\ExpressionGenerationTests.cs (1)
300
f => f.
MemberAccessExpression
(
CodeGeneration\ExpressionPrecedenceGenerationTests.cs (10)
199
f => f.
MemberAccessExpression
(
264
f => f.
MemberAccessExpression
(
280
f.
MemberAccessExpression
(
294
f => f.
MemberAccessExpression
(
310
f.
MemberAccessExpression
(
324
f => f.
MemberAccessExpression
(
339
f.
MemberAccessExpression
(
352
f => f.
MemberAccessExpression
(
396
f => f.
MemberAccessExpression
(
411
f.
MemberAccessExpression
(
Microsoft.CodeAnalysis.Features (14)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
170
generator.
MemberAccessExpression
(
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
331
generator.
MemberAccessExpression
(collectionExpression, generator.IdentifierName(nameof(Enumerable.ElementAt))),
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
380
? factory.
MemberAccessExpression
(
399
? factory.
MemberAccessExpression
(
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
149
generator.
MemberAccessExpression
(
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
396
generator.
MemberAccessExpression
(
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
529
generator.
MemberAccessExpression
(
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (3)
46
: generator.
MemberAccessExpression
(
51
return generator.
MemberAccessExpression
(generator.ThisExpression(), memberName);
328
return Generator.
MemberAccessExpression
(container, newIdentifierName)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
95
generator.
MemberAccessExpression
(
106
generator.
MemberAccessExpression
(
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
238
var taskFromResult = generator.
MemberAccessExpression
(taskTypeExpression, memberName);
264
return generator.
MemberAccessExpression
(left, right);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1204
Dim baseCall = DirectCast(Me.ExpressionStatement(Me.InvocationExpression(Me.
MemberAccessExpression
(Me.BaseExpression(), SyntaxFactory.IdentifierName("New")), baseConstructorArguments)), StatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.vb (10)
232
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.WithTypeArguments(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y(Of z)")
338
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x.y")
340
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
MemberAccessExpression
(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y.z")
341
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
MemberAccessExpression
(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z")
342
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
MemberAccessExpression
(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z")
343
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
MemberAccessExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "((x) + (y)).z")
344
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
MemberAccessExpression
(Generator.NegateExpression(Generator.IdentifierName("x")), Generator.IdentifierName("y")), "(-(x)).y")
388
Generator.ElementAccessExpression(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
429
VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.
MemberAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x.y()")
Microsoft.CodeAnalysis.Workspaces (23)
Editing\SyntaxGenerator.cs (1)
2181
=>
MemberAccessExpression
(expression, IdentifierName(memberName));
Shared\Extensions\SyntaxGeneratorExtensions.cs (7)
95
codeFactory.
MemberAccessExpression
(
104
codeFactory.
MemberAccessExpression
(
114
codeFactory.
MemberAccessExpression
(
121
codeFactory.
MemberAccessExpression
(
133
codeFactory.
MemberAccessExpression
(
139
codeFactory.
MemberAccessExpression
(
262
codeFactory.
MemberAccessExpression
(codeFactory.BaseExpression(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
145
return generator.
MemberAccessExpression
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (7)
84
return factory.
MemberAccessExpression
(typeExpression, factory.IdentifierName(DefaultName));
105
var through = generator.
MemberAccessExpression
(
128
through = through is null ? name : generator.
MemberAccessExpression
(through, name);
171
through = generator.
MemberAccessExpression
(explicitImplementationCast,
200
: generator.
MemberAccessExpression
(
224
: generator.
MemberAccessExpression
(
351
var fieldAccess = factory.
MemberAccessExpression
(factory.ThisExpression(), factory.IdentifierName(fieldName))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
199
factory.
MemberAccessExpression
(
232
var thisSymbol = factory.
MemberAccessExpression
(factory.ThisExpression(), symbolNameExpression)
234
var otherSymbol = factory.
MemberAccessExpression
(localNameExpression, symbolNameExpression);
263
factory.
MemberAccessExpression
(
302
factory.
MemberAccessExpression
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (2)
225
var thisSymbol = factory.
MemberAccessExpression
(factory.ThisExpression(),
247
factory.
MemberAccessExpression
(
Microsoft.Interop.ComInterfaceGenerator (4)
Analyzers\AddMarshalAsToElementFixer.cs (1)
54
gen.
MemberAccessExpression
(
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
86
gen.AttributeArgument("StringMarshalling", gen.
MemberAccessExpression
(gen.DottedName(TypeNames.StringMarshalling), gen.IdentifierName(nameof(StringMarshalling.Custom)))),
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
266
generator.
MemberAccessExpression
(
295
generator.
MemberAccessExpression
(
Microsoft.Interop.LibraryImportGenerator (4)
Analyzers\ConvertToLibraryImportFixer.cs (2)
459
generator.
MemberAccessExpression
(
468
generator.
MemberAccessExpression
(
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
266
generator.
MemberAccessExpression
(
295
generator.
MemberAccessExpression
(