NGettext.Plural.Ast.TokenDefinition.GetLeftDenotation C# (CSharp) Method

GetLeftDenotation() public method

Gets a left denotation token for given token using the left denotation getter.
public GetLeftDenotation ( Token self, Token left ) : Token
self Token
left Token
return Token
        public Token GetLeftDenotation(Token self, Token left)
        {
            if (this.LeftDenotationGetter == null)
                throw new InvalidOperationException("Unable to invoke left denotation getter: getter is not set.");
            if (self.Type != this.TokenType)
                throw new ArgumentException("Unable to invoke null denotation getter: invalid self type.", "self");

            return this.LeftDenotationGetter(self, left);
        }