Gurpenator.CheckingContext.checkIsBoolean C# (CSharp) Méthode

checkIsBoolean() public méthode

public checkIsBoolean ( IdentifierToken token ) : void
token IdentifierToken
Résultat void
        public void checkIsBoolean(IdentifierToken token)
        {
            if (token.text == "level")
                throwNotABooleanError(token);
            GurpsProperty property = getProperty(token);
            if (!(property is Advantage || property is AbstractSkill))
                throwNotABooleanError(token);
        }

Usage Example

 public override void checkIsBoolean(CheckingContext context)
 {
     context.checkIsBoolean(token);
 }