30 references to TypeInternal
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Attributes.cs (3)
731!((TypeSymbol)reorderedArgument.TypeInternal!).Equals(parameter.Type, TypeCompareKind.AllIgnoreOptions)) 824Debug.Assert(argument.TypeInternal is object); 826Conversion conversion = conversions.ClassifyBuiltInConversion((TypeSymbol)argument.TypeInternal, parameter.Type, isChecked: false, ref discardedUseSiteInfo);
Compiler\ClsComplianceChecker.cs (2)
598if (argument.TypeInternal.TypeKind == TypeKind.Array) 614if (argument.TypeInternal.TypeKind == TypeKind.Array)
Emitter\Model\AttributeDataAdapter.cs (4)
103return CreateMetadataConstant(argument.TypeInternal, null, context); 115return CreateMetadataConstant(argument.TypeInternal, argument.ValueInternal, context); 123var arrayType = ((PEModuleBuilder)context.Module).Translate((ArrayTypeSymbol)argument.TypeInternal); 150moduleBeingBuilt.Translate((TypeSymbol)argument.TypeInternal, syntaxNodeOpt, diagnostics));
Symbols\Attributes\AttributeData.cs (1)
389var firstArgType = (TypeSymbol?)firstArg.TypeInternal;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1260TypeSymbol oldConstantType = (TypeSymbol)oldConstant.TypeInternal;
Symbols\Source\SourceComplexParameterSymbol.cs (5)
963((NamedTypeSymbol)arg.TypeInternal).EnumUnderlyingType.SpecialType : 964arg.TypeInternal.SpecialType; 992diagnosticsOpt.Add(ErrorCode.ERR_DefaultValueBadValueType, node.Name.Location, arg.TypeInternal); 997else if (!compilation.Conversions.ClassifyConversionFromType((TypeSymbol)arg.TypeInternal, this.Type, isChecked: false, ref useSiteInfo).Kind.IsImplicitConversion()) 1325if (constant.TypeInternal is not { SpecialType: SpecialType.System_String })
Symbols\TypedConstantExtensions.cs (1)
30if (constant.Kind == TypedConstantKind.Type || constant.TypeInternal!.SpecialType == SpecialType.System_Object)
Microsoft.CodeAnalysis.VisualBasic (13)
Emit\AttributeDataAdapter.vb (4)
67Return CreateMetadataConstant(argument.TypeInternal, Nothing, context) 76Return CreateMetadataConstant(argument.TypeInternal, argument.ValueInternal, context) 85Dim arrayType = moduleBeingBuilt.Translate(DirectCast(argument.TypeInternal, ArrayTypeSymbol)) 110moduleBeingBuilt.Translate(DirectCast(argument.TypeInternal, TypeSymbol), syntaxNodeOpt, diagnostics))
Symbols\Attributes\AttributeData.vb (1)
237Dim firstArgType = DirectCast(firstArg.TypeInternal, TypeSymbol)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
731Dim oldConstantType As TypeSymbol = DirectCast(oldConstant.TypeInternal, TypeSymbol)
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2211Debug.Assert(argument.TypeInternal IsNot Nothing) 2212Debug.Assert(DirectCast(argument.TypeInternal, TypeSymbol).Equals(DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything))
Symbols\Source\SourceParameterSymbol.vb (3)
284Dim newArgs = ImmutableArray.Create(New TypedConstant(oldTypedConstant.TypeInternal, oldTypedConstant.Kind, correctedParameterName)) 422DirectCast(arg.TypeInternal, NamedTypeSymbol).EnumUnderlyingType.SpecialType, 423arg.TypeInternal.SpecialType)
Symbols\TypedConstant.vb (2)
37If constant.Kind = TypedConstantKind.Type OrElse constant.TypeInternal.SpecialType = SpecialType.System_Object Then 54Dim splType As SpecialType = DirectCast(constant.TypeInternal, NamedTypeSymbol).EnumUnderlyingType.SpecialType