48 references to Type
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (1)
741Error(diagnostics, ErrorCode.ERR_BadSKknown, node, type.Type, MessageID.IDS_SK_TYPE.Localize(), MessageID.IDS_SK_VARIABLE.Localize());
Binder\Binder_Attributes.cs (2)
937var typeOfArgument = (TypeSymbol?)node.SourceType.Type; 968return CreateTypedConstant(node, TypedConstantKind.Type, diagnostics, ref attrHasErrors, curArgumentHasErrors, simpleValue: node.SourceType.Type);
Binder\Binder_Expressions.cs (2)
8239qualifierOpt: left is BoundTypeExpression typeExpr ? typeExpr.Type : null); 8704if (receiverOpt is not BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } })
Binder\Binder_Operators.cs (2)
3192var targetType = typeExpression.Type; 3261var targetType = typeExpression.Type;
Binder\Binder_Patterns.cs (6)
448bool isExplicitNotNullTest = boundType.Type.SpecialType == SpecialType.System_Object; 449return new BoundTypePattern(node, boundType, isExplicitNotNullTest, inputType, boundType.Type, hasErrors); 848return new BoundDeclarationPattern(node, boundDeclType, isVar: false, variableSymbol, variableAccess, inputType: inputType, narrowedType: boundDeclType.Type, hasErrors); 1045narrowedType: boundDeclType?.Type ?? inputType.StrippedType(), hasErrors); 1619bool isExplicitNotNullTest = patternType.Type.SpecialType == SpecialType.System_Object; 1620return new BoundTypePattern(node, patternType, isExplicitNotNullTest, inputType, patternType.Type, hasErrors);
Binder\DecisionDagBuilder.cs (3)
397TypeSymbol? type = declaration.DeclaredType?.Type; 424TypeSymbol type = typePattern.DeclaredType.Type; 523var inputType = recursive.DeclaredType?.Type ?? input.Type.StrippedType();
Binder\RefSafetyAnalysis.cs (2)
495if (node.DeclaredTypeOpt?.Type.IsRefLikeOrAllowsRefLikeType() == true) 575return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : CallingMethodScope;
Binder\UsingStatementBinder.cs (1)
132declarationTypeOpt = declarationsOpt[0].DeclaredTypeOpt!.Type;
BoundTree\BoundExpression.cs (2)
272get { return this.AliasOpt ?? (Symbol)this.Type; } 279ErrorTypeSymbol? errorType = this.Type.OriginalDefinition as ErrorTypeSymbol;
BoundTree\BoundNode_Source.cs (1)
187append(type.Type.Name);
CodeGen\EmitConversion.cs (1)
331if (receiver is not BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } })
CodeGen\EmitExpression.cs (4)
1668if (receiver is not BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } }) 3392EmitSymbolToken(isOp.TargetType.Type, isOp.Syntax); 3514TypeSymbol type = boundTypeOfOperator.SourceType.Type; 3522TypeSymbol type = boundSizeOfOperator.SourceType.Type;
CodeGen\EmitStatement.cs (1)
596EmitSymbolToken(isOp.TargetType.Type, isOp.TargetType.Syntax);
CodeGen\Optimizer.cs (4)
1172if ((method.IsAbstract || method.IsVirtual) && receiver is BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } } typeExpression) 1175typeWithAnnotations: typeExpression.TypeWithAnnotations, type: this.VisitType(typeExpression.Type)); 2263if (receiverOpt is BoundTypeExpression { AliasOpt: null, BoundContainingTypeOpt: null, BoundDimensionsOpt: { IsEmpty: true }, Type: { TypeKind: TypeKind.TypeParameter } } typeExpression) 2266typeWithAnnotations: typeExpression.TypeWithAnnotations, type: this.VisitType(typeExpression.Type));
Compilation\CSharpSemanticModel.cs (1)
3406var typeSymbol = boundType.AliasOpt ?? (Symbol)boundType.Type;
Compilation\MemberSemanticModel.NodeMapBuilder.cs (2)
96TypeSymbol.Equals(((BoundTypeExpression)existing[i]).Type, ((BoundTypeOrValueExpression)nodesToAdd[i]).Type, TypeCompareKind.ConsiderEverything2), 104TypeSymbol.Equals(((BoundTypeOrValueExpression)existing[i]).Type, ((BoundTypeExpression)nodesToAdd[i]).Type, TypeCompareKind.ConsiderEverything2),
FlowAnalysis\NullableWalker.cs (1)
11528if (typeExpr.Type?.SpecialType == SpecialType.System_Object)
Generated\BoundNodes.xml.Generated.cs (4)
1091if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt) || boundContainingTypeOpt != this.BoundContainingTypeOpt || boundDimensionsOpt != this.BoundDimensionsOpt || typeWithAnnotations != this.TypeWithAnnotations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10916TypeSymbol? type = this.VisitType(node.Type); 12478updatedNode = node.Update(node.AliasOpt, boundContainingTypeOpt, boundDimensionsOpt, node.TypeWithAnnotations, node.Type); 15135new TreeDumperNode("type", node.Type, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
824return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__TypeIs, Visit(operand), _bound.Typeof(node.TargetType.Type, _bound.WellKnownType(WellKnownType.System_Type)));
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
62var constrainedToTypeOpt = ((targetMethod.IsAbstract || targetMethod.IsVirtual) && boundDelegateCreation.Argument is BoundTypeExpression typeExpression) ? typeExpression.Type : null;
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
168FindTypeParameters(typeExpression.Type, usedTypeParameters);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
42Debug.Assert(rewrittenTargetType.Type.Equals(rewrittenType));
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
49var targetType = rewrittenTargetType.Type;
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
227loweredReceiver = _factory.Typeof(((BoundTypeExpression)loweredReceiver).Type, _factory.WellKnownType(WellKnownType.System_Type));
Operations\CSharpOperationFactory.cs (2)
464receiverOpt is BoundTypeExpression { Type: TypeParameterSymbol typeParameter }) 2555ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.InputType.StrippedType()).GetPublicSymbol();