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