示例#1
0
        //public void MemberIsAccess(Location l)
        //{
        //    if (ObjectKind == ObjectKind.Unknown)
        //        ObjectKind = ObjectKind.TableExpression;
        //    if (ObjectKind == ObjectKind.TableExpression)
        //        return;
        //    throw SymbolWrongObjectKindException.NonDataSourceMemberAccessed(this, l);
        //}

        public void UsedInScalarExpression(Location l)
        {
            if (ObjectKind == ObjectKind.Unknown)
            {
                ObjectKind = ObjectKind.Scalar;
            }
            if (ObjectKind == ObjectKind.Scalar)
            {
                return;
            }
            throw SymbolWrongObjectKindException.NonScalarUsedInExpression(this, l);
        }
示例#2
0
 public void UsedAsTableExpression(Location l)
 {
     if (ObjectKind == ObjectKind.Unknown)
     {
         ObjectKind = ObjectKind.TableExpression;
     }
     if (ObjectKind == ObjectKind.TableExpression)
     {
         return;
     }
     throw SymbolWrongObjectKindException.NonTableUsedAsTableExpression(this, l);
 }
示例#3
0
 public void InvokedLikeFunction(Location l)
 {
     if (ObjectKind == ObjectKind.Unknown)
     {
         ObjectKind = ObjectKind.Invokable;
     }
     if (ObjectKind == ObjectKind.Invokable)
     {
         return;
     }
     throw SymbolWrongObjectKindException.NonInvokableInvoked(this, l);
 }