152 references to ThisKeyword
Microsoft.Analyzers.Extra (1)
Microsoft.CodeAnalysis.CSharp (52)
Syntax.xml.Main.Generated.cs (9)
2929if (token.Kind() != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
2935=> SyntaxFactory.ThisExpression(SyntaxFactory.Token(SyntaxKind.ThisKeyword));
5577case SyntaxKind.ThisKeyword: break;
5592SyntaxKind.ThisConstructorInitializer => SyntaxKind.ThisKeyword,
5692if (thisKeyword.Kind() != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
5705=> SyntaxFactory.IndexerDeclaration(attributeLists, modifiers, type, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.ThisKeyword), parameterList, accessorList, expressionBody, default);
5709=> SyntaxFactory.IndexerDeclaration(default, default(SyntaxTokenList), type, default, SyntaxFactory.Token(SyntaxKind.ThisKeyword), SyntaxFactory.BracketedParameterList(), default, default, default);
5914if (thisKeyword.Kind() != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
5920=> SyntaxFactory.IndexerMemberCref(SyntaxFactory.Token(SyntaxKind.ThisKeyword), parameters);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (7)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (74)
Generated\Syntax.Test.xml.Generated.cs (12)
116=> InternalSyntaxFactory.ThisExpression(InternalSyntaxFactory.Token(SyntaxKind.ThisKeyword));
596=> InternalSyntaxFactory.IndexerDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), GenerateIdentifierName(), null, InternalSyntaxFactory.Token(SyntaxKind.ThisKeyword), GenerateBracketedParameterList(), null, null, null);
638=> InternalSyntaxFactory.IndexerMemberCref(InternalSyntaxFactory.Token(SyntaxKind.ThisKeyword), null);
1152Assert.Equal(SyntaxKind.ThisKeyword, node.Token.Kind);
3245Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind);
3416Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind);
10506=> SyntaxFactory.ThisExpression(SyntaxFactory.Token(SyntaxKind.ThisKeyword));
10986=> SyntaxFactory.IndexerDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.ThisKeyword), GenerateBracketedParameterList(), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
11028=> SyntaxFactory.IndexerMemberCref(SyntaxFactory.Token(SyntaxKind.ThisKeyword), default(CrefBracketedParameterListSyntax));
11542Assert.Equal(SyntaxKind.ThisKeyword, node.Token.Kind());
13635Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind());
13806Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.Interop.SourceGeneration (2)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Roslyn.Diagnostics.CSharp.Analyzers (4)