コード例 #1
0
ファイル: PredefinedMembers.cs プロジェクト: medohrir/corefx
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void ReportError(PredefinedType type, PredefinedName name)
 {
     GetErrorContext().Error(ErrorCode.ERR_MissingPredefinedMember, PredefinedTypes.GetFullName(type), GetPredefName(name));
 }
コード例 #4
0
 private Name GetPredefName(PredefinedName pn)
 {
     return GetNameManager().GetPredefName(pn);
 }
コード例 #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;
 }
コード例 #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;
        }
コード例 #7
0
ファイル: PredefinedMembers.cs プロジェクト: medohrir/corefx
 private Name GetPredefName(PredefinedName pn)
 {
     return(NameManager.GetPredefinedName(pn));
 }
コード例 #8
0
ファイル: NameManager.cs プロジェクト: zwy2014/corefx
 internal Name GetPredefinedName(PredefinedName id)
 {
     return(s_predefinedNames[(int)id]);
 }
コード例 #9
0
 public OPINFO(TokenKind t, PredefinedName pn, ExpressionKind e, int c)
 {
     iToken         = t;
     methodName     = pn;
     expressionKind = e;
 }
コード例 #10
0
 public OperatorInfo(TokenKind kind, PredefinedName pn, ExpressionKind e)
 {
     TokenKind      = kind;
     MethodName     = pn;
     ExpressionKind = e;
 }
コード例 #11
0
ファイル: NameManager.cs プロジェクト: tremp/corefx
 internal static Name GetPredefinedName(PredefinedName id)
 {
     Debug.Assert(id < PredefinedName.PN_COUNT);
     return(s_predefinedNames[(int)id]);
 }
コード例 #12
0
ファイル: ErrorFmt.cs プロジェクト: noahfalk/corefx
 public ErrArg(PredefinedName pdn)
 {
     this.eak = ErrArgKind.PredefName;
     this.eaf = ErrArgFlags.None;
     this.pdn = pdn;
 }
コード例 #13
0
 public KnownName(string text, PredefinedName id)
     : base(text)
 {
     PredefinedName = id;
 }
コード例 #14
0
ファイル: COperators.cs プロジェクト: ChuangYang/corefx
 public OPINFO(TokenKind t, PredefinedName pn, ExpressionKind e, int c)
 {
     iToken = t;
     methodName = pn;
     expressionKind = e;
 }
コード例 #15
0
ファイル: NameManager.cs プロジェクト: zwy2014/corefx
 internal Name GetPredefName(PredefinedName id)
 {
     return(GetPredefinedName(id));
 }
コード例 #16
0
ファイル: NameManager.cs プロジェクト: noahfalk/corefx
 internal Name GetPredefinedName(PredefinedName id)
 {
     return s_predefinedNames[(int)id];
 }
コード例 #17
0
ファイル: NameManager.cs プロジェクト: noahfalk/corefx
 internal Name GetPredefName(PredefinedName id)
 {
     return GetPredefinedName(id);
 }
コード例 #18
0
ファイル: PredefinedMembers.cs プロジェクト: medohrir/corefx
 public PredefinedPropertyInfo(PREDEFPROP property, PredefinedName name, PREDEFMETH getter)
 {
     this.property = property;
     this.name     = name;
     this.getter   = getter;
 }
コード例 #19
0
ファイル: ErrorFmt.cs プロジェクト: zhiliangxu/corefx
 private ErrArg(PredefinedName pdn)
 {
     this.eak = ErrArgKind.PredefName;
     this.eaf = ErrArgFlags.None;
     this.pdn = pdn;
 }
コード例 #20
0
ファイル: KnownName.cs プロジェクト: Rayislandstyle/corefx
 public KnownName(string text, PredefinedName id)
     : base(text)
 {
     _id = id;
 }