103 references to TypeExpression
ILLink.CodeFixProvider (2)
Microsoft.Analyzers.Extra (6)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.Features (18)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (26)
Editing\SyntaxGenerator.cs (23)
146TypeExpression(field.Type),
325TypeExpression(symbol.Type),
494TypeExpression(symbol.Type),
532TypeExpression(symbol.Type),
766baseType: type.BaseType != null ? TypeExpression(type.BaseType) : null,
767interfaceTypes: type.Interfaces.Select(TypeExpression),
775interfaceTypes: type.Interfaces.Select(TypeExpression),
781interfaceTypes: type.Interfaces.Select(TypeExpression),
795returnType: invoke.ReturnsVoid ? null : TypeExpression(invoke.ReturnType),
875types: tp.ConstraintTypes.Select(TypeExpression));
1029name: this.TypeExpression(attribute.AttributeClass),
1602/// <see langword="true"/> if the language requires a <see cref="TypeExpression(ITypeSymbol)"/>
1628=> LocalDeclarationStatement(TypeExpression(type), name, initializer, isConst);
1741=> CatchClause(TypeExpression(type), identifier, statements);
1848=> GenericName(identifier, typeArguments.Select(TypeExpression));
1941var expression = TypeExpression(typeSymbol);
2021=> TupleElementExpression(TypeExpression(type), name);
2205=> ObjectCreationExpression(TypeExpression(type), arguments);
2272=> IsTypeExpression(expression, TypeExpression(type));
2283=> TryCastExpression(expression, TypeExpression(type));
2294=> CastExpression(TypeExpression(type), expression);
2305=> ConvertExpression(TypeExpression(type), expression);
2384=> LambdaParameter(identifier, TypeExpression(type));
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.LibraryImportGenerator (30)
Analyzers\CustomMarshallerAttributeFixer.cs (23)
224parameters: new[] { gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)) },
237returnType: gen.TypeExpression(managedType),
248gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)),
261gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)),
280returnType: gen.TypeExpression(managedType),
293gen.ParameterDeclaration("managed", gen.TypeExpression(managedType))
295returnType: gen.TypeExpression(readOnlySpanOfT.Construct(managedElementTypeSymbol.Value)),
311returnType: gen.TypeExpression(spanOfT.Construct(typeParameters[typeParameters.Length - 1])),
327returnType: gen.TypeExpression(readOnlySpanOfT.Construct(typeParameters[typeParameters.Length - 1])),
340gen.ParameterDeclaration("managed", gen.TypeExpression(managedType))
342returnType: gen.TypeExpression(spanOfT.Construct(managedElementTypeSymbol.Value)),
380return gen.TypeExpression(unmanagedType);
382return gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_IntPtr));
420parameters: new[] { gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)) },
450returnType: gen.TypeExpression(managedType),
460gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)),
471returnType: gen.TypeExpression(readOnlySpanOfT.Construct(managedElementTypeSymbol.Value)),
481returnType: gen.TypeExpression(spanOfT.Construct(typeParameters[typeParameters.Length - 1])),
495returnType: gen.TypeExpression(readOnlySpanOfT.Construct(typeParameters[typeParameters.Length - 1])),
509returnType: gen.TypeExpression(spanOfT.Construct(managedElementTypeSymbol.Value)),
547return gen.TypeExpression(unmanagedType);
549return gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_IntPtr));
570generator.TypeExpression(
System.Text.RegularExpressions.Generator (2)