class RuboCop::AST::NodePattern::Lexer

def emit(type)

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

def emit: ((String | Symbol) type) -> untyped

This signature was generated using 7 samples from 1 application.

Returns:
  • (token) -
def emit(type)
  value = ss[1] || ss.matched
  value = yield value if block_given?
  token = token(type, value)
  @tokens << token
  token
end