Base:
property
Type
Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeSyntax.Type
21 references to Type
Microsoft.CodeAnalysis.CSharp (5)
Compilation\SyntaxTreeSemanticModel.cs (1)
2556
return (node) => node != baseType.
Type
;
Syntax.xml.Main.Generated.cs (1)
2026
=> node.Update((TypeSyntax?)Visit(node.
Type
) ?? throw new ArgumentNullException("type"), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
Syntax.xml.Syntax.Generated.cs (2)
11611
if (type != this.
Type
|| argumentList != this.ArgumentList)
11623
public PrimaryConstructorBaseTypeSyntax WithArgumentList(ArgumentListSyntax argumentList) => Update(this.
Type
, argumentList);
Syntax\SyntaxFacts.cs (1)
197
return ((PrimaryConstructorBaseTypeSyntax)parent).
Type
== node;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
459
var info = SemanticModel.GetTypeInfo(primaryConstructorBaseType.
Type
, CancellationToken);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\PrimaryConstructorTests.cs (4)
1088
Assert.Equal("Base", model.GetTypeInfo(baseWithargs.
Type
).Type.ToTestDisplayString());
1128
Assert.Null(model.GetOperation(baseWithargs.
Type
));
2121
Assert.Equal("Base", model.GetTypeInfo(baseWithargs.
Type
).Type.ToTestDisplayString());
2303
Assert.Equal("Base", model.GetTypeInfo(baseWithargs.
Type
).Type.ToTestDisplayString());
Semantics\RecordTests.cs (4)
21264
Assert.Equal("Base", model.GetTypeInfo(baseWithargs.
Type
).Type.ToTestDisplayString());
21305
Assert.Null(model.GetOperation(baseWithargs.
Type
));
22337
Assert.Equal("Base", model.GetTypeInfo(baseWithargs.
Type
).Type.ToTestDisplayString());
22519
Assert.Equal("Base", model.GetTypeInfo(baseWithargs.
Type
).Type.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
242
var type = semanticModel.GetTypeInfo(baseType.
Type
, cancellationToken).Type as INamedTypeSymbol;
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
259
mainDocumentEditor.ReplaceNode(baseType, (current, _) => SimpleBaseType(((PrimaryConstructorBaseTypeSyntax)current).
Type
).WithTriviaFrom(baseType));
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
85
if (semanticModel.GetTypeInfo(baseTypeSyntax.
Type
, cancellationToken).Type is not INamedTypeSymbol baseType)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
13298
Assert.NotNull(node.
Type
);
13300
var newNode = node.WithType(node.
Type
).WithArgumentList(node.ArgumentList);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
459
var info = SemanticModel.GetTypeInfo(primaryConstructorBaseType.
Type
, CancellationToken);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
459
var info = SemanticModel.GetTypeInfo(primaryConstructorBaseType.
Type
, CancellationToken);