Cci.ITypeReference Cci.IModule.GetPlatformType(Cci.PlatformType platformType, EmitContext context)
        {
            Debug.Assert((object)this == context.Module);

            switch (platformType)
            {
            case Cci.PlatformType.SystemType:
                return(GetSystemType((TSyntaxNode)context.SyntaxNodeOpt, context.Diagnostics));

            default:
                return(GetSpecialType((SpecialType)platformType, (TSyntaxNode)context.SyntaxNodeOpt, context.Diagnostics));
            }
        }
Exemple #2
0
        public sealed override Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context)
        {
            Debug.Assert((object)this == context.Module);

            switch (platformType)
            {
            case Cci.PlatformType.SystemType:
                throw ExceptionUtilities.UnexpectedValue(platformType);

            default:
                return(GetSpecialType((SpecialType)platformType, (TSyntaxNode)context.SyntaxNode, context.Diagnostics));
            }
        }
 bool Cci.IModule.IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType)
 {
     return(IsPlatformType(typeRef, platformType));
 }
 protected abstract bool IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType);
Exemple #5
0
 public abstract bool IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType);
Exemple #6
0
 public abstract Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context);