43 references to MemberAccessExpression
ILLink.CodeFixProvider (1)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
135 var attributeArguments = new[] { generator.AttributeArgument (generator.MemberAccessExpression (generator.DottedName ("System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes"), stringArguments)) };
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (2)
519var memberAccessExpression = gen.MemberAccessExpression(loggerSyntaxNode!, methodName); 595gen.MemberAccessExpression(gen.TypeExpression(comp.GetTypeByMetadataName("Microsoft.Extensions.Logging.LogLevel")!), details.Level),
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
258generator.MemberAccessExpression(throughExpression, @event.Name),
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
336generator.MemberAccessExpression(throughExpression, memberName), generator.IdentifierName("value")));
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
211g.MemberAccessExpression(
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
181let caseLabel = (TMemberAccessExpression)generator.MemberAccessExpression(generator.TypeExpression(enumType), e.Name).WithAdditionalAnnotations(Simplifier.Annotation)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
220invocation = generator.MemberAccessExpression(taskTypeExpression, nameof(Task.CompletedTask)); 252var memberAccessExpressionSyntaxKind = generator.MemberAccessExpression(generator.IdentifierName("ignored"), "ignored").RawKind;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
253factory.MemberAccessExpression(thisSymbol, nameof(object.Equals)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
30factory.MemberAccessExpression(factory.BaseExpression(), GetHashCodeName))); 49factory.MemberAccessExpression(factory.TypeExpression(hashCodeType), "Combine"), 64factory.MemberAccessExpression(localReference, "Add"), 70factory.MemberAccessExpression(localReference, "ToHashCode")))); 154factory.MemberAccessExpression(rightSide, GetHashCodeName)); 242factory.MemberAccessExpression(thisSymbol, nameof(object.GetHashCode)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
116var memberAccess = generator.MemberAccessExpression(generator.TypeExpression(type), memberName);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
116var memberAccess = generator.MemberAccessExpression(generator.TypeExpression(type), memberName);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
368VerifySyntax<MemberAccessExpressionSyntax>(Generator.MemberAccessExpression(Generator.IdentifierName("x"), "y"), "x.y");
Microsoft.CodeAnalysis.Features (9)
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
120generator.MemberAccessExpression(withoutTrivia, nameof(Task.ConfigureAwait)),
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
861generator.MemberAccessExpression(
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
214generator.MemberAccessExpression(leftExpression, nameof(IComparable.CompareTo)),
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
188factory.MemberAccessExpression(
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
358methodName = _generator.MemberAccessExpression(receiverExpression, newMethodIdentifier);
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
44var resultingNode = generator.InvocationExpression(generator.MemberAccessExpression(generator.IdentifierName(nameof(Console)), nameof(Console.WriteLine)));
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
181let caseLabel = (TMemberAccessExpression)generator.MemberAccessExpression(generator.TypeExpression(enumType), e.Name).WithAdditionalAnnotations(Simplifier.Annotation)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
220invocation = generator.MemberAccessExpression(taskTypeExpression, nameof(Task.CompletedTask)); 252var memberAccessExpressionSyntaxKind = generator.MemberAccessExpression(generator.IdentifierName("ignored"), "ignored").RawKind;
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
339VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.IdentifierName("x"), "y"), "x.y")
Microsoft.CodeAnalysis.Workspaces (8)
Editing\SyntaxGenerator.cs (1)
28/// possible. For example, generating <see cref="MemberAccessExpression(SyntaxNode, string)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
253factory.MemberAccessExpression(thisSymbol, nameof(object.Equals)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
30factory.MemberAccessExpression(factory.BaseExpression(), GetHashCodeName))); 49factory.MemberAccessExpression(factory.TypeExpression(hashCodeType), "Combine"), 64factory.MemberAccessExpression(localReference, "Add"), 70factory.MemberAccessExpression(localReference, "ToHashCode")))); 154factory.MemberAccessExpression(rightSide, GetHashCodeName)); 242factory.MemberAccessExpression(thisSymbol, nameof(object.GetHashCode)));
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Editing\SyntaxEditorTests.cs (3)
228var args = new[] { syntaxGenerator.AttributeArgument(syntaxGenerator.MemberAccessExpression(syntaxGenerator.DottedName("Sample"), "Attribute")) }; 272var args = new[] { syntaxGenerator.AttributeArgument(syntaxGenerator.MemberAccessExpression(syntaxGenerator.DottedName("Sample"), "Attribute")) }; 315var args = new[] { syntaxGenerator.AttributeArgument(syntaxGenerator.MemberAccessExpression(syntaxGenerator.DottedName("Sample"), "Attribute")) };
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
402generator.MemberAccessExpression(
System.Text.RegularExpressions.Generator (2)
UpgradeToGeneratedRegexCodeFixer.cs (2)
169replacement = generator.InvocationExpression(generator.MemberAccessExpression(replacement, invocationOperation.TargetMethod.Name), arguments); 219regexOptionsValue ??= generator.MemberAccessExpression(SyntaxFactory.IdentifierName("RegexOptions"), "None");