class SyntaxTree::Parser
def consume_keyword(name)
Experimental RBS support (using type sampling data from the type_fusion
project).
def consume_keyword: (Symbol name) -> untyped
This signature was generated using 29 samples from 1 application.
def consume_keyword(name) index = tokens.rindex { |token| token.is_a?(Kw) && (token.name == name) } consume_error(name, nil) unless index tokens.delete_at(index) end