55 references to Type
Microsoft.CodeAnalysis.CSharp (55)
BoundTree\BoundExpression.cs (1)
553type: changeTypeOpt ?? Type);
CodeGen\EmitExpression.cs (2)
2426EmitInitObj(expression.Type, used, expression.Syntax); 2470TryEmitOptimizedReadonlySpanCreation((NamedTypeSymbol)expression.Type, expression.Arguments[0], used, inPlaceTarget, out avoidInPlace,
CodeGen\Optimizer.cs (2)
1323node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, initializerExpressionOpt: null, node.Type); 2145TypeSymbol type = this.VisitType(node.Type);
FlowAnalysis\NullableWalker.cs (3)
3918MethodSymbol? constructor = getConstructor(node, node.Type); 3928var type = node.Type; 3985Debug.Assert(TypeSymbol.Equals(resultTypeWithAnnotations.Type, node.Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes));
Generated\BoundNodes.xml.Generated.cs (16)
6381if (!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)) 6653if (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)) 6685if (guidString != this.GuidString || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7072if (initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11805TypeSymbol? type = this.VisitType(node.Type); 11857TypeSymbol? type = this.VisitType(node.Type); 11863TypeSymbol? type = this.VisitType(node.Type); 11927TypeSymbol? type = this.VisitType(node.Type); 14055updatedNode = node.Update(constructor, constructorsGroup, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, initializerExpressionOpt, node.WasTargetTyped, node.Type); 14161updatedNode = node.Update(node.Name, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, initializerExpressionOpt, applicableMethods, node.WasTargetTyped, node.Type); 14178updatedNode = node.Update(node.GuidString, initializerExpressionOpt, node.WasTargetTyped, node.Type); 14353updatedNode = node.Update(initializerExpressionOpt, node.WasTargetTyped, node.Type); 16492new TreeDumperNode("type", node.Type, null), 16571new TreeDumperNode("type", node.Type, null), 16581new TreeDumperNode("type", node.Type, null), 16684new TreeDumperNode("type", node.Type, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
870return 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()) || 1059return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_Type, _bound.Typeof(node.Type, _bound.WellKnownType(WellKnownType.System_Type))); 1064if (node.Type.IsAnonymousType && node.Arguments.Length != 0) 1066var anonType = (NamedTypeSymbol)node.Type;
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
619var originalInput = BoundDagTemp.ForOriginalInput(loweredInput.Syntax, loweredInput.Type); 623var field = loweredInput.Type.TupleElements[i].CorrespondingTupleField; 636loweredInput.InitializerExpressionOpt, loweredInput.Type);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (15)
21var constructorInvocation = _dynamicFactory.MakeDynamicConstructorInvocation(node.Syntax, node.Type, loweredArguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt).ToExpression(); 28return MakeExpressionWithInitializer(node.Syntax, constructorInvocation, node.InitializerExpressionOpt, node.Type); 79if (node.Type.IsInterfaceType()) 81Debug.Assert(TypeSymbol.Equals(rewrittenObjectCreation.Type, ((NamedTypeSymbol)node.Type).ComImportCoClass, TypeCompareKind.ConsiderEverything2)); 82rewrittenObjectCreation = MakeConversionNode(rewrittenObjectCreation, node.Type, false, false); 109node.Type); 112if (node.Type.IsInterfaceType()) 114Debug.Assert(TypeSymbol.Equals(rewrittenObjectCreation.Type, ((NamedTypeSymbol)node.Type).ComImportCoClass, TypeCompareKind.ConsiderEverything2)); 115rewrittenObjectCreation = MakeConversionNode(rewrittenObjectCreation, node.Type, false, false); 128return MakeExpressionWithInitializer(node.Syntax, rewrittenObjectCreation, node.InitializerExpressionOpt, node.Type); 311return node.Update(MakeObjectCreationInitializerForExpressionTree(node.InitializerExpressionOpt), node.WasTargetTyped, node.Type); 314var rewrittenNewT = MakeNewT(node.Syntax, (TypeParameterSymbol)node.Type); 415rewrittenObjectCreation = _factory.Convert(node.Type, _factory.Call(null, createInstance, callGetTypeFromCLSID)); 419rewrittenObjectCreation = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, node.Type); 429return MakeExpressionWithInitializer(node.Syntax, rewrittenObjectCreation, node.InitializerExpressionOpt, node.Type);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
564wrappedChar.Type));
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
205case BoundObjectCreationExpression { Arguments: { Length: 0 }, Type: { } eType } _ when eType.IsNullableType(): 207case BoundObjectCreationExpression { Arguments: { Length: 1 }, Type: { } eType } creation when eType.IsNullableType():
Lowering\MethodToClassRewriter.cs (3)
565if (!TypeSymbol.Equals(rewritten.Type, node.Type, TypeCompareKind.ConsiderEverything2) && (object)node.Constructor != null) 578rewritten.Type);
Lowering\SpillSequenceSpiller.cs (1)
1417return 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)
716else if (boundObjectCreationExpression.Type.IsAnonymousType)