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),
495TypeExpression(symbol.Type),
533TypeExpression(symbol.Type),
767baseType: type.BaseType != null ? TypeExpression(type.BaseType) : null,
768interfaceTypes: type.Interfaces.Select(TypeExpression),
776interfaceTypes: type.Interfaces.Select(TypeExpression),
782interfaceTypes: type.Interfaces.Select(TypeExpression),
796returnType: invoke.ReturnsVoid ? null : TypeExpression(invoke.ReturnType),
876types: tp.ConstraintTypes.Select(TypeExpression));
1030name: this.TypeExpression(attribute.AttributeClass),
1603/// <see langword="true"/> if the language requires a <see cref="TypeExpression(ITypeSymbol)"/>
1629=> LocalDeclarationStatement(TypeExpression(type), name, initializer, isConst);
1742=> CatchClause(TypeExpression(type), identifier, statements);
1849=> GenericName(identifier, typeArguments.Select(TypeExpression));
1942var expression = TypeExpression(typeSymbol);
2022=> TupleElementExpression(TypeExpression(type), name);
2206=> ObjectCreationExpression(TypeExpression(type), arguments);
2273=> IsTypeExpression(expression, TypeExpression(type));
2284=> TryCastExpression(expression, TypeExpression(type));
2295=> CastExpression(TypeExpression(type), expression);
2306=> ConvertExpression(TypeExpression(type), expression);
2385=> 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)