39 references to ThisOrBaseKeyword
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
4916errorLocation = initializerSyntax.ThisOrBaseKeyword.GetLocation();
Binder\Binder_Statements.cs (2)
3770Error(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.Identifier); 3781Error(diagnostics, ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);
Compiler\MethodCompiler.cs (1)
1900constructorSyntax.Initializer.ThisOrBaseKeyword.GetLocation(),
Lowering\Instrumentation\DebugInfoInjector.cs (1)
90TextSpan.FromBounds(ctorInit.ThisOrBaseKeyword.SpanStart, ctorInit.ArgumentList.CloseParenToken.Span.End));
Syntax.xml.Main.Generated.cs (1)
2071=> node.Update(VisitToken(node.ColonToken), VisitToken(node.ThisOrBaseKeyword), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
Syntax.xml.Syntax.Generated.cs (3)
12870if (colonToken != this.ColonToken || thisOrBaseKeyword != this.ThisOrBaseKeyword || argumentList != this.ArgumentList) 12880public ConstructorInitializerSyntax WithColonToken(SyntaxToken colonToken) => Update(colonToken, this.ThisOrBaseKeyword, this.ArgumentList); 12882public ConstructorInitializerSyntax WithArgumentList(ArgumentListSyntax argumentList) => Update(this.ColonToken, this.ThisOrBaseKeyword, argumentList);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
71var thisOrBaseKeyword = initializer.ThisOrBaseKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
265constructorInit.ThisOrBaseKeyword == token; 269constructorInit.ThisOrBaseKeyword == token;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
52token = constructorInitializer.ThisOrBaseKeyword;
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
54var thisBaseKeyword = initializer.ThisOrBaseKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (4)
142!constructorInitializer.ThisOrBaseKeyword.IsMissing) 150var thisOrBaseIsFirstTokenOnLine = !constructorInitializer.ThisOrBaseKeyword.IsMissing && constructorInitializer.ThisOrBaseKeyword.IsFirstTokenOnLine(text); 155constructorInitializer.ThisOrBaseKeyword,
Microsoft.CodeAnalysis.CSharp.Features (7)
EditAndContinue\BreakpointSpans.cs (2)
479=> CreateSpan(constructorInitializer.ThisOrBaseKeyword, constructorInitializer.ArgumentList.CloseParenToken); 482=> [constructorInitializer.ThisOrBaseKeyword, .. getDescendantTokens(constructorInitializer.ArgumentList)];
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
970return ctorInitializer is null or { ThisOrBaseKeyword: (kind: SyntaxKind.ThisKeyword), ArgumentList.Arguments: [] };
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
71var thisOrBaseKeyword = initializer.ThisOrBaseKeyword;
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
52token = constructorInitializer.ThisOrBaseKeyword;
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
54var thisBaseKeyword = initializer.ThisOrBaseKeyword;
Wrapping\SeparatedSyntaxList\CSharpArgumentWrapper.cs (1)
88startToken = constructorInitializer.ThisOrBaseKeyword;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
13503Assert.Equal(SyntaxKind.BaseKeyword, node.ThisOrBaseKeyword.Kind()); 13505var newNode = node.WithColonToken(node.ColonToken).WithThisOrBaseKeyword(node.ThisOrBaseKeyword).WithArgumentList(node.ArgumentList);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
265constructorInit.ThisOrBaseKeyword == token; 269constructorInit.ThisOrBaseKeyword == token;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (4)
142!constructorInitializer.ThisOrBaseKeyword.IsMissing) 150var thisOrBaseIsFirstTokenOnLine = !constructorInitializer.ThisOrBaseKeyword.IsMissing && constructorInitializer.ThisOrBaseKeyword.IsFirstTokenOnLine(text); 155constructorInitializer.ThisOrBaseKeyword,
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
265constructorInit.ThisOrBaseKeyword == token; 269constructorInit.ThisOrBaseKeyword == token;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (4)
142!constructorInitializer.ThisOrBaseKeyword.IsMissing) 150var thisOrBaseIsFirstTokenOnLine = !constructorInitializer.ThisOrBaseKeyword.IsMissing && constructorInitializer.ThisOrBaseKeyword.IsFirstTokenOnLine(text); 155constructorInitializer.ThisOrBaseKeyword,