Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 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));
            }
        }
Exemplo n.º 3
0
 bool Cci.IModule.IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType)
 {
     return(IsPlatformType(typeRef, platformType));
 }
Exemplo n.º 4
0
 protected abstract bool IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType);
Exemplo n.º 5
0
 public abstract bool IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType);
Exemplo n.º 6
0
 public abstract Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context);