49 references to ThisExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
597case SyntaxKind.ThisExpression:
Binder\Binder_Invocation.cs (2)
2289case SyntaxKind.ThisExpression: 2310case SyntaxKind.ThisExpression:
Parser\LanguageParser.cs (1)
10807case SyntaxKind.ThisExpression:
Syntax\SyntaxKindFacts.cs (1)
599return SyntaxKind.ThisExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
52}, SyntaxKind.ThisExpression);
src\Analyzers\CSharp\Analyzers\QualifyMemberAccess\CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
24=> node.IsKind(SyntaxKind.ThisExpression);
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
175Expression: (kind: SyntaxKind.ThisExpression),
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
482MemberAccessExpressionSyntax(kind: SyntaxKind.SimpleMemberAccessExpression) { Expression: (kind: SyntaxKind.ThisExpression), Name: IdentifierNameSyntax identifierName } => identifierName,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
163if (nodeParent.IsKind(SyntaxKind.CastExpression) && expression.IsKind(SyntaxKind.ThisExpression)) 234if (expression.IsKind(SyntaxKind.ThisExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
117public int ThisExpression => (int)SyntaxKind.ThisExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
69=> expression.Kind() is SyntaxKind.ThisExpression or SyntaxKind.BaseExpression;
Microsoft.CodeAnalysis.CSharp.Features (8)
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
64case SyntaxKind.ThisExpression:
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
90if (node is MemberAccessExpressionSyntax memberAccess && memberAccess.Expression.IsKind(SyntaxKind.ThisExpression))
EditAndContinue\SyntaxComparer.cs (1)
518case SyntaxKind.ThisExpression:
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
52}, SyntaxKind.ThisExpression);
src\Analyzers\CSharp\Analyzers\QualifyMemberAccess\CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
24=> node.IsKind(SyntaxKind.ThisExpression);
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
175Expression: (kind: SyntaxKind.ThisExpression),
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
482MemberAccessExpressionSyntax(kind: SyntaxKind.SimpleMemberAccessExpression) { Expression: (kind: SyntaxKind.ThisExpression), Name: IdentifierNameSyntax identifierName } => identifierName,
UseAutoProperty\UseAutoPropertyRewriter.cs (1)
26if (node.Expression.IsKind(SyntaxKind.ThisExpression))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\BindingTests.cs (2)
2365var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.ThisExpression)).Cast<ThisExpressionSyntax>().Single(); 2384var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.ThisExpression)).Cast<ThisExpressionSyntax>().Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\GetSemanticInfoTests.cs (1)
1772Assert.Equal(SyntaxKind.ThisExpression, exprSyntaxToBind.Kind());
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
15434var syntax = tree.GetCompilationUnitRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.ThisExpression);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Parsing\AsyncStreamsParsingTests.cs (3)
86N(SyntaxKind.ThisExpression); 152N(SyntaxKind.ThisExpression); 245N(SyntaxKind.ThisExpression);
Parsing\AwaitParsingTests.cs (3)
496N(SyntaxKind.ThisExpression); 1215N(SyntaxKind.ThisExpression); 1965N(SyntaxKind.ThisExpression);
Parsing\DeclarationParsingTests.cs (1)
6307N(SyntaxKind.ThisExpression);
Parsing\ExpressionParsingTests.cs (1)
485case SyntaxKind.ThisExpression:
Parsing\PatternParsingTests.cs (1)
11889N(SyntaxKind.ThisExpression);
Parsing\ScriptParsingTests.cs (6)
6842N(SyntaxKind.ThisExpression); 6906N(SyntaxKind.ThisExpression); 6976N(SyntaxKind.ThisExpression); 7046N(SyntaxKind.ThisExpression); 7114N(SyntaxKind.ThisExpression); 7186N(SyntaxKind.ThisExpression);
Parsing\StatementAttributeParsingTests.cs (1)
6703N(SyntaxKind.ThisExpression);
Parsing\TopLevelStatementsParsingTests.cs (2)
46N(SyntaxKind.ThisExpression); 1392N(SyntaxKind.ThisExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3184is SyntaxKind.ThisExpression
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
163if (nodeParent.IsKind(SyntaxKind.CastExpression) && expression.IsKind(SyntaxKind.ThisExpression)) 234if (expression.IsKind(SyntaxKind.ThisExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
117public int ThisExpression => (int)SyntaxKind.ThisExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
69=> expression.Kind() is SyntaxKind.ThisExpression or SyntaxKind.BaseExpression;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
219case SyntaxKind.ThisExpression: