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