class SyntaxTree::Parser

def find_keyword(name)

Experimental RBS support (using type sampling data from the type_fusion project).

def find_keyword: (Symbol name) -> untyped

This signature was generated using 6 samples from 1 application.

def find_keyword(name)
  index = tokens.rindex { |token| token.is_a?(Kw) && (token.name == name) }
  tokens[index] if index
end