46 references to ThisExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
567case SyntaxKind.ThisExpression:
Binder\Binder_Invocation.cs (2)
1953case SyntaxKind.ThisExpression: 1974case SyntaxKind.ThisExpression:
Parser\LanguageParser.cs (1)
10189case SyntaxKind.ThisExpression:
Syntax\SyntaxKindFacts.cs (1)
571return SyntaxKind.ThisExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
53}, SyntaxKind.ThisExpression);
CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
24=> node.IsKind(SyntaxKind.ThisExpression);
CSharpSyntaxKinds.cs (1)
106public int ThisExpression => (int)SyntaxKind.ThisExpression;
CSharpUseAutoPropertyAnalyzer.cs (1)
140Expression: (kind: SyntaxKind.ThisExpression),
ParenthesizedExpressionSyntaxExtensions.cs (2)
169if (nodeParent.IsKind(SyntaxKind.CastExpression) && expression.IsKind(SyntaxKind.ThisExpression)) 234if (expression.IsKind(SyntaxKind.ThisExpression))
SpeculationAnalyzer.cs (1)
68=> expression.Kind() is SyntaxKind.ThisExpression or SyntaxKind.BaseExpression;
Microsoft.CodeAnalysis.CSharp.Features (6)
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
53}, SyntaxKind.ThisExpression);
CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
24=> node.IsKind(SyntaxKind.ThisExpression);
CSharpUseAutoPropertyAnalyzer.cs (1)
140Expression: (kind: SyntaxKind.ThisExpression),
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
64case SyntaxKind.ThisExpression:
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
86if (node is MemberAccessExpressionSyntax memberAccess && memberAccess.Expression.IsKind(SyntaxKind.ThisExpression))
EditAndContinue\SyntaxComparer.cs (1)
517case SyntaxKind.ThisExpression:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\BindingTests.cs (2)
2332var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.ThisExpression)).Cast<ThisExpressionSyntax>().Single(); 2351var 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 (17)
Parsing\AsyncStreamsParsingTests.cs (3)
86N(SyntaxKind.ThisExpression); 152N(SyntaxKind.ThisExpression); 245N(SyntaxKind.ThisExpression);
Parsing\AwaitParsingTests.cs (2)
495N(SyntaxKind.ThisExpression); 1272N(SyntaxKind.ThisExpression);
Parsing\DeclarationParsingTests.cs (1)
6307N(SyntaxKind.ThisExpression);
Parsing\ExpressionParsingTests.cs (1)
485case SyntaxKind.ThisExpression:
Parsing\PatternParsingTests.cs (1)
11928N(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)
6691N(SyntaxKind.ThisExpression);
Parsing\TopLevelStatementsParsingTests.cs (2)
46N(SyntaxKind.ThisExpression); 1392N(SyntaxKind.ThisExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3183expression.IsKind(SyntaxKind.ThisExpression) ||
CSharpSyntaxKinds.cs (1)
106public int ThisExpression => (int)SyntaxKind.ThisExpression;
ParenthesizedExpressionSyntaxExtensions.cs (2)
169if (nodeParent.IsKind(SyntaxKind.CastExpression) && expression.IsKind(SyntaxKind.ThisExpression)) 234if (expression.IsKind(SyntaxKind.ThisExpression))
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
44if (expression is MemberAccessExpressionSyntax { Expression.RawKind: (int)SyntaxKind.ThisExpression } memberAccessExpression)
SpeculationAnalyzer.cs (1)
68=> expression.Kind() is SyntaxKind.ThisExpression or SyntaxKind.BaseExpression;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
219case SyntaxKind.ThisExpression: