55 references to Type
Microsoft.CodeAnalysis.CSharp (55)
BoundTree\BoundExpression.cs (1)
553
type: changeTypeOpt ??
Type
);
CodeGen\EmitExpression.cs (2)
2426
EmitInitObj(expression.
Type
, used, expression.Syntax);
2470
TryEmitOptimizedReadonlySpanCreation((NamedTypeSymbol)expression.
Type
, expression.Arguments[0], used, inPlaceTarget, out avoidInPlace,
CodeGen\Optimizer.cs (2)
1323
node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, initializerExpressionOpt: null, node.
Type
);
2145
TypeSymbol type = this.VisitType(node.
Type
);
FlowAnalysis\NullableWalker.cs (3)
3857
MethodSymbol? constructor = getConstructor(node, node.
Type
);
3867
var type = node.
Type
;
3924
Debug.Assert(TypeSymbol.Equals(resultTypeWithAnnotations.Type, node.
Type
, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes));
Generated\BoundNodes.xml.Generated.cs (16)
6380
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorsGroup != this.ConstructorsGroup || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || constantValueOpt != this.ConstantValueOpt || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
6652
if (name != this.Name || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || initializerExpressionOpt != this.InitializerExpressionOpt || applicableMethods != this.ApplicableMethods || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
6684
if (guidString != this.GuidString || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
7071
if (initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
11768
TypeSymbol? type = this.VisitType(node.
Type
);
11820
TypeSymbol? type = this.VisitType(node.
Type
);
11826
TypeSymbol? type = this.VisitType(node.
Type
);
11890
TypeSymbol? type = this.VisitType(node.
Type
);
14018
updatedNode = node.Update(constructor, constructorsGroup, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, initializerExpressionOpt, node.WasTargetTyped, node.
Type
);
14124
updatedNode = node.Update(node.Name, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, initializerExpressionOpt, applicableMethods, node.WasTargetTyped, node.
Type
);
14141
updatedNode = node.Update(node.GuidString, initializerExpressionOpt, node.WasTargetTyped, node.
Type
);
14316
updatedNode = node.Update(initializerExpressionOpt, node.WasTargetTyped, node.
Type
);
16455
new TreeDumperNode("type", node.
Type
, null),
16534
new TreeDumperNode("type", node.
Type
, null),
16544
new TreeDumperNode("type", node.
Type
, null),
16647
new TreeDumperNode("type", node.
Type
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
870
return VisitObjectCreationContinued(_bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_Type, _bound.Typeof(node.
Type
, _bound.WellKnownType(WellKnownType.System_Type))), node.InitializerExpressionOpt);
1056
(node.Arguments.Length == 0 && !node.
Type
.IsStructType()) ||
1059
return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_Type, _bound.Typeof(node.
Type
, _bound.WellKnownType(WellKnownType.System_Type)));
1064
if (node.
Type
.IsAnonymousType && node.Arguments.Length != 0)
1066
var anonType = (NamedTypeSymbol)node.
Type
;
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
619
var originalInput = BoundDagTemp.ForOriginalInput(loweredInput.Syntax, loweredInput.
Type
);
623
var field = loweredInput.
Type
.TupleElements[i].CorrespondingTupleField;
636
loweredInput.InitializerExpressionOpt, loweredInput.
Type
);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (15)
21
var constructorInvocation = _dynamicFactory.MakeDynamicConstructorInvocation(node.Syntax, node.
Type
, loweredArguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt).ToExpression();
28
return MakeExpressionWithInitializer(node.Syntax, constructorInvocation, node.InitializerExpressionOpt, node.
Type
);
79
if (node.
Type
.IsInterfaceType())
81
Debug.Assert(TypeSymbol.Equals(rewrittenObjectCreation.Type, ((NamedTypeSymbol)node.
Type
).ComImportCoClass, TypeCompareKind.ConsiderEverything2));
82
rewrittenObjectCreation = MakeConversionNode(rewrittenObjectCreation, node.
Type
, false, false);
109
node.
Type
);
112
if (node.
Type
.IsInterfaceType())
114
Debug.Assert(TypeSymbol.Equals(rewrittenObjectCreation.Type, ((NamedTypeSymbol)node.
Type
).ComImportCoClass, TypeCompareKind.ConsiderEverything2));
115
rewrittenObjectCreation = MakeConversionNode(rewrittenObjectCreation, node.
Type
, false, false);
128
return MakeExpressionWithInitializer(node.Syntax, rewrittenObjectCreation, node.InitializerExpressionOpt, node.
Type
);
311
return node.Update(MakeObjectCreationInitializerForExpressionTree(node.InitializerExpressionOpt), node.WasTargetTyped, node.
Type
);
314
var rewrittenNewT = MakeNewT(node.Syntax, (TypeParameterSymbol)node.
Type
);
415
rewrittenObjectCreation = _factory.Convert(node.
Type
, _factory.Call(null, createInstance, callGetTypeFromCLSID));
419
rewrittenObjectCreation = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, node.
Type
);
429
return MakeExpressionWithInitializer(node.Syntax, rewrittenObjectCreation, node.InitializerExpressionOpt, node.
Type
);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
564
wrappedChar.
Type
));
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
205
case BoundObjectCreationExpression { Arguments: { Length: 0 },
Type
: { } eType } _ when eType.IsNullableType():
207
case BoundObjectCreationExpression { Arguments: { Length: 1 },
Type
: { } eType } creation when eType.IsNullableType():
Lowering\MethodToClassRewriter.cs (3)
565
if (!TypeSymbol.Equals(rewritten.
Type
, node.
Type
, TypeCompareKind.ConsiderEverything2) && (object)node.Constructor != null)
578
rewritten.
Type
);
Lowering\SpillSequenceSpiller.cs (1)
1417
return UpdateExpression(builder, node.Update(node.Constructor, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, node.InitializerExpressionOpt, node.
Type
));
Operations\CSharpOperationFactory.cs (1)
716
else if (boundObjectCreationExpression.
Type
.IsAnonymousType)