39 references to ThisOrBaseKeyword
Microsoft.CodeAnalysis.CSharp (11)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2083=> node.Update(VisitToken(node.ColonToken), VisitToken(node.ThisOrBaseKeyword), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
_generated\2\Syntax.xml.Syntax.Generated.cs (3)
12917if (colonToken != this.ColonToken || thisOrBaseKeyword != this.ThisOrBaseKeyword || argumentList != this.ArgumentList) 12927public ConstructorInitializerSyntax WithColonToken(SyntaxToken colonToken) => Update(colonToken, this.ThisOrBaseKeyword, this.ArgumentList); 12929public ConstructorInitializerSyntax WithArgumentList(ArgumentListSyntax argumentList) => Update(this.ColonToken, this.ThisOrBaseKeyword, argumentList);
Binder\Binder_Expressions.cs (1)
4994errorLocation = initializerSyntax.ThisOrBaseKeyword.GetLocation();
Binder\Binder_Statements.cs (4)
3799Error(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.Identifier); 3804Error(diagnostics, ErrorCode.ERR_UnionConstructorCallsDefaultConstructor, initializer?.ThisOrBaseKeyword ?? constructor.Identifier); 3816Error(diagnostics, ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword); 3820Error(diagnostics, ErrorCode.ERR_UnionConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);
Compiler\MethodCompiler.cs (1)
1916constructorSyntax.Initializer.ThisOrBaseKeyword.GetLocation(),
Lowering\Instrumentation\DebugInfoInjector.cs (1)
90TextSpan.FromBounds(ctorInit.ThisOrBaseKeyword.SpanStart, ctorInit.ArgumentList.CloseParenToken.Span.End));
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
76var thisOrBaseKeyword = initializer.ThisOrBaseKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
269constructorInit.ThisOrBaseKeyword == token; 273constructorInit.ThisOrBaseKeyword == token;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
52token = constructorInitializer.ThisOrBaseKeyword;
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
53var thisBaseKeyword = initializer.ThisOrBaseKeyword;
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
76var thisOrBaseKeyword = initializer.ThisOrBaseKeyword;
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
52token = constructorInitializer.ThisOrBaseKeyword;
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
53var thisBaseKeyword = initializer.ThisOrBaseKeyword;
Wrapping\SeparatedSyntaxList\CSharpArgumentWrapper.cs (1)
88startToken = constructorInitializer.ThisOrBaseKeyword;
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
269constructorInit.ThisOrBaseKeyword == token; 273constructorInit.ThisOrBaseKeyword == token;
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
269constructorInit.ThisOrBaseKeyword == token; 273constructorInit.ThisOrBaseKeyword == token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (4)
142!constructorInitializer.ThisOrBaseKeyword.IsMissing) 150var thisOrBaseIsFirstTokenOnLine = !constructorInitializer.ThisOrBaseKeyword.IsMissing && constructorInitializer.ThisOrBaseKeyword.IsFirstTokenOnLine(text); 155constructorInitializer.ThisOrBaseKeyword,