2 overrides of ThisExpression
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3272public override SyntaxNode ThisExpression()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
325Public Overrides Function ThisExpression() As SyntaxNode
32 references to ThisExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
214g.ThisExpression())));
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (1)
63factory.ThisExpression(),
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
48generator.ThisExpression(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (5)
125: generator.ThisExpression(); 168generator.ThisExpression()); 223return [generator.ReturnStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name))]; 264return [generator.ExpressionStatement(generator.AssignmentStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name), generator.IdentifierName(parameter.Name)))]; 378var fieldAccess = factory.MemberAccessExpression(factory.ThisExpression(), factory.IdentifierName(fieldName))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
232var thisSymbol = factory.MemberAccessExpression(factory.ThisExpression(), symbolNameExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
225var thisSymbol = factory.MemberAccessExpression(factory.ThisExpression(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
152generator.ThisExpression(),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
111newArgumentsList = newArgumentsList.Insert(0, (ArgumentSyntax)generator.Argument(generator.ThisExpression()));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
62var left = (ArgumentSyntax)generator.Argument(generator.MemberAccessExpression(generator.ThisExpression(), generator.IdentifierName(fieldOrProperty.Name)));
Microsoft.CodeAnalysis.CSharp.Features (2)
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
130generator.AddParentheses(generator.CastExpression(interfaceType, generator.ThisExpression())),
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
111newArgumentsList = newArgumentsList.Insert(0, (ArgumentSyntax)generator.Argument(generator.ThisExpression()));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
62var left = (ArgumentSyntax)generator.Argument(generator.MemberAccessExpression(generator.ThisExpression(), generator.IdentifierName(fieldOrProperty.Name)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\ExpressionGenerationTests.cs (1)
52f => f.ThisExpression(),
Microsoft.CodeAnalysis.Features (7)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
171generator.ThisExpression(),
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
862generator.ThisExpression(),
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
381factory.ThisExpression(), 400factory.ThisExpression(),
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (2)
51return generator.MemberAccessExpression(generator.ThisExpression(), memberName); 326: Generator.ThisExpression();
Snippets\SnippetProviders\AbstractLockSnippetProvider.cs (1)
18var statement = generator.LockStatement(generator.ThisExpression(), statements: []);
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (5)
125: generator.ThisExpression(); 168generator.ThisExpression()); 223return [generator.ReturnStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name))]; 264return [generator.ExpressionStatement(generator.AssignmentStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name), generator.IdentifierName(parameter.Name)))]; 378var fieldAccess = factory.MemberAccessExpression(factory.ThisExpression(), factory.IdentifierName(fieldName))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
232var thisSymbol = factory.MemberAccessExpression(factory.ThisExpression(), symbolNameExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
225var thisSymbol = factory.MemberAccessExpression(factory.ThisExpression(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
152generator.ThisExpression(),