2 overrides of TypeExpression
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3428
public override SyntaxNode
TypeExpression
(SpecialType specialType)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
391
Public Overrides Function
TypeExpression
(specialType As SpecialType) As SyntaxNode
56 references to TypeExpression
Microsoft.CodeAnalysis.CSharp.Features (1)
Snippets\CSharpIntMainSnippetProvider.cs (1)
31
=> (TypeSyntax)generator.
TypeExpression
(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (20)
CodeGeneration\SyntaxGeneratorTests.cs (20)
290
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Byte), "byte");
291
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_SByte), "sbyte");
293
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Int16), "short");
294
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_UInt16), "ushort");
296
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Int32), "int");
297
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_UInt32), "uint");
299
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Int64), "long");
300
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_UInt64), "ulong");
302
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Single), "float");
303
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Double), "double");
305
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Char), "char");
306
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_String), "string");
308
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Object), "object");
309
VerifySyntax<TypeSyntax>(Generator.
TypeExpression
(SpecialType.System_Decimal), "decimal");
781
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32)),
785
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), initializer: Generator.LiteralExpression(0)),
789
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), accessibility: Accessibility.Public),
793
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Static | DeclarationModifiers.ReadOnly),
797
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Required),
858
var returnType = Generator.
TypeExpression
(SpecialType.System_Boolean);
Microsoft.CodeAnalysis.Features (2)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
165
returnType: generator.
TypeExpression
(SpecialType.System_String),
Snippets\SnippetProviders\AbstractMainMethodSnippetProvider.cs (1)
31
type: generator.ArrayTypeExpression(generator.
TypeExpression
(SpecialType.System_String)))],
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (20)
CodeGeneration\SyntaxGeneratorTests.vb (20)
266
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Byte), "Byte")
267
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_SByte), "SByte")
269
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Int16), "Short")
270
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_UInt16), "UShort")
272
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Int32), "Integer")
273
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_UInt32), "UInteger")
275
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Int64), "Long")
276
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_UInt64), "ULong")
278
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Single), "Single")
279
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Double), "Double")
281
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Char), "Char")
282
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_String), "String")
284
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Object), "Object")
285
VerifySyntax(Of TypeSyntax)(Generator.
TypeExpression
(SpecialType.System_Decimal), "Decimal")
828
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32)),
832
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), initializer:=Generator.LiteralExpression(0)),
836
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), accessibility:=Accessibility.Public),
840
Generator.FieldDeclaration("fld", Generator.
TypeExpression
(SpecialType.System_Int32), modifiers:=DeclarationModifiers.Static Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WithEvents),
943
Dim returnType = Generator.
TypeExpression
(SpecialType.System_Boolean)
1353
Dim params = {Generator.ParameterDeclaration("sender", Generator.
TypeExpression
(SpecialType.System_Object)), Generator.ParameterDeclaration("args", Generator.IdentifierName("EventArgs"))}
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
787
:
TypeExpression
(type.EnumUnderlyingType.SpecialType),
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Editing\SyntaxEditorTests.cs (5)
52
editor.ReplaceNode(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.
TypeExpression
(SpecialType.System_String), Accessibility.Public));
103
editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.
TypeExpression
(SpecialType.System_String), Accessibility.Public));
130
editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.
TypeExpression
(SpecialType.System_String), Accessibility.Public));
178
editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.
TypeExpression
(SpecialType.System_String), Accessibility.Public));
179
editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Z", editor.Generator.
TypeExpression
(SpecialType.System_Object), Accessibility.Public));
SyntaxNodeTests.cs (1)
103
var cgenField = gen.FieldDeclaration("X", gen.
TypeExpression
(SpecialType.System_Int32), Accessibility.Private);
Microsoft.Interop.LibraryImportGenerator (6)
Analyzers\CustomMarshallerAttributeFixer.cs (6)
262
gen.ParameterDeclaration("numElements", type: gen.
TypeExpression
(SpecialType.System_Int32), refKind: RefKind.Out),
278
gen.ParameterDeclaration("numElements", type: gen.
TypeExpression
(SpecialType.System_Int32)),
309
gen.ParameterDeclaration("numElements", gen.
TypeExpression
(SpecialType.System_Int32))
325
gen.ParameterDeclaration("numElements", gen.
TypeExpression
(SpecialType.System_Int32))
493
gen.ParameterDeclaration("numElements", gen.
TypeExpression
(SpecialType.System_Int32))
507
gen.ParameterDeclaration("numElements", gen.
TypeExpression
(SpecialType.System_Int32))