29 references to SimpleBaseType
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Syntax.Generated.cs (1)
11558var newNode = SyntaxFactory.SimpleBaseType(type);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (3)
251? BaseList([SimpleBaseType(namedType.EnumUnderlyingType.GenerateTypeSyntax())]) 322types.Add(SimpleBaseType(namedType.BaseType.GenerateTypeSyntax())); 325types.Add(SimpleBaseType(type.GenerateTypeSyntax()));
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
259mainDocumentEditor.ReplaceNode(baseType, (current, _) => SimpleBaseType(((PrimaryConstructorBaseTypeSyntax)current).Type).WithTriviaFrom(baseType));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (1)
10880=> SyntaxFactory.SimpleBaseType(GenerateIdentifierName());
Syntax\SyntaxNodeTests.cs (1)
65var cls2 = cls.AddBaseListTypes(SyntaxFactory.SimpleBaseType(SyntaxFactory.ParseTypeName("B")));
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
713baseTypes.Add(SyntaxFactory.SimpleBaseType((TypeSyntax)baseType)); 716baseTypes.AddRange(interfaceTypes.Select(i => SyntaxFactory.SimpleBaseType((TypeSyntax)i))); 764var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 785var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 898underlyingType != null ? SyntaxFactory.BaseList([SyntaxFactory.SimpleBaseType((TypeSyntax)underlyingType)]) : null, 2832return WithBaseList(declaration, baseList.WithTypes(baseList.Types.Insert(0, SyntaxFactory.SimpleBaseType((TypeSyntax)baseType)))); 2836return AddBaseList(declaration, SyntaxFactory.BaseList([SyntaxFactory.SimpleBaseType((TypeSyntax)baseType)])); 2846return WithBaseList(declaration, baseList.WithTypes(baseList.Types.Insert(baseList.Types.Count, SyntaxFactory.SimpleBaseType((TypeSyntax)interfaceType)))); 2850return AddBaseList(declaration, SyntaxFactory.BaseList([SyntaxFactory.SimpleBaseType((TypeSyntax)interfaceType)]));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (3)
251? BaseList([SimpleBaseType(namedType.EnumUnderlyingType.GenerateTypeSyntax())]) 322types.Add(SimpleBaseType(namedType.BaseType.GenerateTypeSyntax())); 325types.Add(SimpleBaseType(type.GenerateTypeSyntax()));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingElasticTriviaTests.cs (1)
51BaseList([SimpleBaseType(ParseTypeName("System.Attribute"))]),
Microsoft.Interop.ComInterfaceGenerator (4)
ComClassGenerator.cs (1)
86.AddBaseListTypes(SimpleBaseType(TypeSyntaxes.IComExposedClass))
ComInterfaceGenerator.cs (2)
572.AddBaseListTypes(SimpleBaseType(definingType.Syntax)) 855.AddBaseListTypes(SimpleBaseType(TypeSyntaxes.IIUnknownInterfaceType));
VtableIndexStubGenerator.cs (1)
432.WithBaseList(BaseList(SingletonSeparatedList((BaseTypeSyntax)SimpleBaseType(IdentifierName(context.ContainingSyntax[0].Identifier)))))
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
3701? typeDeclaration.BaseList.WithTypes(typeDeclaration.BaseList.Types.Insert(insertionIndex, SyntaxFactory.SimpleBaseType(typeName))) 3702: SyntaxFactory.BaseList([SyntaxFactory.SimpleBaseType(typeName)]);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (3)
251? BaseList([SimpleBaseType(namedType.EnumUnderlyingType.GenerateTypeSyntax())]) 322types.Add(SimpleBaseType(namedType.BaseType.GenerateTypeSyntax())); 325types.Add(SimpleBaseType(type.GenerateTypeSyntax()));