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