Gurpenator.CheckingContext.getProperty C# (CSharp) Method

getProperty() private method

private getProperty ( IdentifierToken token ) : GurpsProperty
token IdentifierToken
return GurpsProperty
        private GurpsProperty getProperty(IdentifierToken token)
        {
            if (token.text == "level")
                if (enclosingProperty != null)
                    return enclosingProperty;

            if (nameToThing == null)
                throwNotAnIntError(token);
            try { return nameToThing[token.text]; }
            catch (KeyNotFoundException) { }

            throw token.parseThing.createError("name not defined '" + token.text + "'");
        }