67 references to TypeExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
90generator.Attribute(editor.Generator.TypeExpression(obsoleteAttribute)));
AbstractFlagsEnumGenerator.cs (1)
146generator.TypeExpression(enumType),
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
87generator.TypeExpression(symbol.Type),
AbstractPopulateSwitchCodeFixProvider.cs (1)
181let caseLabel = (TMemberAccessExpression)generator.MemberAccessExpression(generator.TypeExpression(enumType), e.Name).WithAdditionalAnnotations(Simplifier.Annotation)
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
254var typeExpression = generator.TypeExpression(typeSymbol);
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
49factory.MemberAccessExpression(factory.TypeExpression(hashCodeType), "Combine"),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
94var newType = generator.TypeExpression(compilation.GetSpecialType(
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
121var memberAccess = generator.MemberAccessExpression(generator.TypeExpression(type), memberName);
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
94var newType = generator.TypeExpression(compilation.GetSpecialType(
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
121var memberAccess = generator.MemberAccessExpression(generator.TypeExpression(type), memberName);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\AddImportsTests.cs (1)
802var attributeSyntax = editor.Generator.Attribute(editor.Generator.TypeExpression(attribute));
CodeGeneration\SyntaxGeneratorTests.cs (3)
317VerifySyntax<QualifiedNameSyntax>(Generator.TypeExpression(genericType), "global::System.Collections.Generic.IEnumerable<T>"); 320VerifySyntax<ArrayTypeSyntax>(Generator.TypeExpression(arrayType), "global::System.Int32[]"); 858var parameters = parameterTypes.Select((t, i) => Generator.ParameterDeclaration("p" + i, Generator.TypeExpression(t))).ToList();
Microsoft.CodeAnalysis.Features (22)
AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
90generator.Attribute(editor.Generator.TypeExpression(obsoleteAttribute)));
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
87generator.TypeExpression(symbol.Type),
AbstractPopulateSwitchCodeFixProvider.cs (1)
181let caseLabel = (TMemberAccessExpression)generator.MemberAccessExpression(generator.TypeExpression(enumType), e.Name).WithAdditionalAnnotations(Simplifier.Annotation)
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
254var typeExpression = generator.TypeExpression(typeSymbol);
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
152.Attribute(generator.TypeExpression(debuggerAttributeTypeSymbol), new[] { attributeArgument })
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
348typeNode = (TTypeNode)generator.TypeExpression(
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
261var typeReference = syntaxGenerator.TypeExpression(newType);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
349var typeReference = syntaxGenerator.TypeExpression(extractedInterfaceSymbol);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
100generator.TypeExpression(constructedTypeToImplement));
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (1)
305g.TypeExpression(gcType),
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
398generator.TypeExpression(stringType), 543return generator.TypeExpression(typeSymbol);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
278var parameter = _generator.ParameterDeclaration(parameterName, _generator.TypeExpression(parameterType)); 540_generator.TypeExpression(parameterType));
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
121generator.TypeExpression(type ?? semanticModel.Compilation.ObjectType),
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (3)
290expandedExtensionInvocation = expandedExtensionInvocation.ReplaceNode(typeExpression, generator.TypeExpression(newType) 314replacement = generator.TypeExpression(newType); 330generator.TypeExpression(newType)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
63: generator.TypeExpression(typeSymbol);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (3)
47generator.TypeExpression(propertyBackingField.ContainingType), 313parameterType = Generator.TypeExpression(_property.Type); 325? Generator.TypeExpression(_property.ContainingType)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\EventGenerator.vb (1)
114generator.TypeExpression([event].Type),
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
291VerifySyntax(Of QualifiedNameSyntax)(Generator.TypeExpression(genericType), "Global.System.Collections.Generic.IEnumerable(Of T)") 294VerifySyntax(Of ArrayTypeSyntax)(Generator.TypeExpression(arrayType), "System.Int32()") 942Dim parameters = parameterTypes.Select(Function(t, i) Generator.ParameterDeclaration("p" & i, Generator.TypeExpression(t))).ToList() 1814Generator.TypeExpression(Me._ienumerableInt)),
Microsoft.CodeAnalysis.Workspaces (26)
AbstractFlagsEnumGenerator.cs (1)
146generator.TypeExpression(enumType),
Editing\SymbolEditorExtensions.cs (1)
99return editor.SetBaseTypeAsync(symbol, g => newBaseType != null ? g.TypeExpression(newBaseType) : null, cancellationToken);
Editing\SyntaxGenerator.cs (23)
137TypeExpression(field.Type), 338TypeExpression(symbol.Type), 499TypeExpression(symbol.Type), 537TypeExpression(symbol.Type), 778baseType: type.BaseType != null ? TypeExpression(type.BaseType) : null, 779interfaceTypes: type.Interfaces.Select(TypeExpression), 787interfaceTypes: type.Interfaces.Select(TypeExpression), 793interfaceTypes: type.Interfaces.Select(TypeExpression), 807returnType: invoke.ReturnsVoid ? null : TypeExpression(invoke.ReturnType), 886types: tp.ConstraintTypes.Select(TypeExpression)); 1034name: this.TypeExpression(attribute.AttributeClass), 1598/// <see langword="true"/> if the language requires a <see cref="TypeExpression(ITypeSymbol)"/> 1624=> LocalDeclarationStatement(TypeExpression(type), name, initializer, isConst); 1737=> CatchClause(TypeExpression(type), identifier, statements); 1838=> GenericName(identifier, typeArguments.Select(TypeExpression)); 1931var expression = TypeExpression(typeSymbol); 2011=> TupleElementExpression(TypeExpression(type), name); 2195=> ObjectCreationExpression(TypeExpression(type), arguments); 2262=> IsTypeExpression(expression, TypeExpression(type)); 2273=> TryCastExpression(expression, TypeExpression(type)); 2284=> CastExpression(TypeExpression(type), expression); 2295=> ConvertExpression(TypeExpression(type), expression); 2374=> LambdaParameter(identifier, TypeExpression(type));
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
49factory.MemberAccessExpression(factory.TypeExpression(hashCodeType), "Combine"),