//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); }
public void UsedAsTableExpression(Location l) { if (ObjectKind == ObjectKind.Unknown) { ObjectKind = ObjectKind.TableExpression; } if (ObjectKind == ObjectKind.TableExpression) { return; } throw SymbolWrongObjectKindException.NonTableUsedAsTableExpression(this, l); }
public void InvokedLikeFunction(Location l) { if (ObjectKind == ObjectKind.Unknown) { ObjectKind = ObjectKind.Invokable; } if (ObjectKind == ObjectKind.Invokable) { return; } throw SymbolWrongObjectKindException.NonInvokableInvoked(this, l); }