34 references to ThisKeyword
Microsoft.CodeAnalysis.CSharp (12)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5737new SourceLocation(indexerSyntax.ThisKeyword));
Symbols\Source\SourcePropertySymbol.cs (1)
29var location = syntax.ThisKeyword.GetLocation();
Syntax.xml.Main.Generated.cs (1)
2086=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.ThisKeyword), (BracketedParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (AccessorListSyntax?)Visit(node.AccessorList), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (9)
13396if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || type != this.Type || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || thisKeyword != this.ThisKeyword || parameterList != this.ParameterList || accessorList != this.AccessorList || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken) 13407public new IndexerDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13409public new IndexerDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13411public new IndexerDeclarationSyntax WithType(TypeSyntax type) => Update(this.AttributeLists, this.Modifiers, type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13413public new IndexerDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.Type, explicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13415public IndexerDeclarationSyntax WithParameterList(BracketedParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, parameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13417public new IndexerDeclarationSyntax WithAccessorList(AccessorListSyntax? accessorList) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, accessorList, this.ExpressionBody, this.SemicolonToken); 13418public IndexerDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, expressionBody, this.SemicolonToken); 13419public IndexerDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
200IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ThisKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
60return ((IndexerDeclarationSyntax)member).ThisKeyword;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1144IndexerDeclarationSyntax indexerDecl => indexerDecl.ThisKeyword.GetLocation(),
Microsoft.CodeAnalysis.CSharp.Features (4)
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
73IndexerDeclarationSyntax indexerDeclarationNode => indexerDeclarationNode.ThisKeyword,
Organizing\Organizers\IndexerDeclarationOrganizer.cs (1)
34thisKeyword: syntax.ThisKeyword,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
336indexerDeclaration.ThisKeyword));
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
200IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ThisKeyword,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Generated\Syntax.Test.xml.Generated.cs (2)
13581Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind()); 13586var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithType(node.Type).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithThisKeyword(node.ThisKeyword).WithParameterList(node.ParameterList).WithAccessorList(node.AccessorList).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (9)
4955Assert.NotEqual(default, ps.ThisKeyword); 4956Assert.Equal("this", ps.ThisKeyword.ToString()); 5022Assert.NotEqual(default, ps.ThisKeyword); 5023Assert.Equal("this", ps.ThisKeyword.ToString()); 5090Assert.NotEqual(default, ps.ThisKeyword); 5091Assert.Equal("this", ps.ThisKeyword.ToString()); 5157Assert.NotEqual(default, ps.ThisKeyword); 5158Assert.Equal("this", ps.ThisKeyword.ToString()); 5236Assert.Equal("this", ps.ThisKeyword.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
347indexerDecl.ThisKeyword.Span,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
60return ((IndexerDeclarationSyntax)member).ThisKeyword;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
822((IndexerDeclarationSyntax)node).ThisKeyword.ToString();
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
60return ((IndexerDeclarationSyntax)member).ThisKeyword;