ReportMissingPredefTypeError() 공개 메소드

public ReportMissingPredefTypeError ( ErrorHandling errorContext, PredefinedType pt ) : void
errorContext Microsoft.CSharp.RuntimeBinder.Errors.ErrorHandling
pt PredefinedType
리턴 void
예제 #1
0
        public AggregateType GetAts(ErrorHandling errorContext)
        {
            AggregateSymbol aggNullable = typeManager.GetNullable();

            if (aggNullable == null)
            {
                throw Error.InternalCompilerError();
            }

            if (ats == null)
            {
                if (aggNullable == null)
                {
                    typeManager.ReportMissingPredefTypeError(errorContext, PredefinedType.PT_G_OPTIONAL);
                    return(null);
                }

                CType     typePar      = GetUnderlyingType();
                CType[]   typeParArray = new CType[] { typePar };
                TypeArray ta           = symmgr.AllocParams(1, typeParArray);
                ats = typeManager.GetAggregate(aggNullable, ta);
            }
            return(ats);
        }