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