137 references to TypeExpression
ILLink.CodeFixProvider (2)
Metrics (4)
Metrics.Legacy (4)
Microsoft.Analyzers.Extra (6)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.Features (18)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (3)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (23)
Editing\SyntaxGenerator.cs (21)
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),
1606/// <see langword="true"/> if the language requires a <see cref="TypeExpression(ITypeSymbol)"/>
1632=> LocalDeclarationStatement(TypeExpression(type), name, initializer, isConst);
1745=> CatchClause(TypeExpression(type), identifier, statements);
1855=> GenericName(identifier, typeArguments.Select(TypeExpression));
1945var expression = TypeExpression(typeSymbol);
2025=> TupleElementExpression(TypeExpression(type), name);
2208=> ObjectCreationExpression(TypeExpression(type), arguments);
2275=> IsTypeExpression(expression, TypeExpression(type));
2286=> TryCastExpression(expression, TypeExpression(type));
2389=> 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(
Roslyn.Diagnostics.Analyzers (13)
Roslyn.Diagnostics.CSharp.Analyzers (1)
System.Text.RegularExpressions.Generator (2)
Test.Utilities (4)
Text.Analyzers (4)