Esempio n. 1
0
        public int[] signature;       // Size 8. expand this if a new method has a signature which doesn't fit in the current space

        public PredefinedMethodInfo(PREDEFMETH method, PredefinedType type, PredefinedName name, MethodCallingConventionEnum callingConvention, ACCESS access, int cTypeVars, int[] signature)
        {
            this.method            = method;
            this.type              = type;
            this.name              = name;
            this.callingConvention = callingConvention;
            this.access            = access;
            this.cTypeVars         = cTypeVars;
            this.signature         = signature;
        }
        private static Dictionary <Name, string> GetOperatorByName()
        {
            Dictionary <Name, string> dict = new Dictionary <Name, string>(28)
            {
                { NameManager.GetPredefinedName(PredefinedName.PN_OPEQUALS), "equals" },
                { NameManager.GetPredefinedName(PredefinedName.PN_OPCOMPARE), "compare" }
            };

            foreach (OperatorInfo opInfo in s_operatorInfos)
            {
                PredefinedName predefName = opInfo.MethodName;
                TokenKind      token      = opInfo.TokenKind;
                if (predefName != PredefinedName.PN_COUNT && token != TokenKind.Unknown)
                {
                    dict.Add(NameManager.GetPredefinedName(predefName), TokenFacts.GetText(token));
                }
            }

            return(dict);
        }
Esempio n. 3
0
 private void ReportError(PredefinedType type, PredefinedName name)
 {
     GetErrorContext().Error(ErrorCode.ERR_MissingPredefinedMember, PredefinedTypes.GetFullName(type), GetPredefName(name));
 }
Esempio n. 4
0
 private Name GetPredefName(PredefinedName pn)
 {
     return GetNameManager().GetPredefName(pn);
 }
Esempio n. 5
0
 public PredefinedPropertyInfo(PREDEFPROP property, MethodRequiredEnum required, PredefinedName name, PREDEFMETH getter, PREDEFMETH setter)
 {
     this.property = property;
     this.name = name;
     this.getter = getter;
     this.setter = setter;
 }
Esempio n. 6
0
        public int[] signature;       // Size 8. expand this if a new method has a signature which doesn't fit in the current space

        public PredefinedMethodInfo(PREDEFMETH method, MethodRequiredEnum required, PredefinedType type, PredefinedName name, MethodCallingConventionEnum callingConvention, ACCESS access, int cTypeVars, int[] signature)
        {
            this.method = method;
            this.type = type;
            this.name = name;
            this.callingConvention = callingConvention;
            this.access = access;
            this.cTypeVars = cTypeVars;
            this.signature = signature;
        }
Esempio n. 7
0
 private Name GetPredefName(PredefinedName pn)
 {
     return(NameManager.GetPredefinedName(pn));
 }
Esempio n. 8
0
 internal Name GetPredefinedName(PredefinedName id)
 {
     return(s_predefinedNames[(int)id]);
 }
Esempio n. 9
0
 public OPINFO(TokenKind t, PredefinedName pn, ExpressionKind e, int c)
 {
     iToken         = t;
     methodName     = pn;
     expressionKind = e;
 }
 public OperatorInfo(TokenKind kind, PredefinedName pn, ExpressionKind e)
 {
     TokenKind      = kind;
     MethodName     = pn;
     ExpressionKind = e;
 }
Esempio n. 11
0
 internal static Name GetPredefinedName(PredefinedName id)
 {
     Debug.Assert(id < PredefinedName.PN_COUNT);
     return(s_predefinedNames[(int)id]);
 }
Esempio n. 12
0
 public ErrArg(PredefinedName pdn)
 {
     this.eak = ErrArgKind.PredefName;
     this.eaf = ErrArgFlags.None;
     this.pdn = pdn;
 }
Esempio n. 13
0
 public KnownName(string text, PredefinedName id)
     : base(text)
 {
     PredefinedName = id;
 }
Esempio n. 14
0
 public OPINFO(TokenKind t, PredefinedName pn, ExpressionKind e, int c)
 {
     iToken = t;
     methodName = pn;
     expressionKind = e;
 }
Esempio n. 15
0
 internal Name GetPredefName(PredefinedName id)
 {
     return(GetPredefinedName(id));
 }
Esempio n. 16
0
 internal Name GetPredefinedName(PredefinedName id)
 {
     return s_predefinedNames[(int)id];
 }
Esempio n. 17
0
 internal Name GetPredefName(PredefinedName id)
 {
     return GetPredefinedName(id);
 }
Esempio n. 18
0
 public PredefinedPropertyInfo(PREDEFPROP property, PredefinedName name, PREDEFMETH getter)
 {
     this.property = property;
     this.name     = name;
     this.getter   = getter;
 }
Esempio n. 19
0
 private ErrArg(PredefinedName pdn)
 {
     this.eak = ErrArgKind.PredefName;
     this.eaf = ErrArgFlags.None;
     this.pdn = pdn;
 }
Esempio n. 20
0
 public KnownName(string text, PredefinedName id)
     : base(text)
 {
     _id = id;
 }