class SyntaxTree::Parser

def on_hash(assocs)

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

def on_hash: (nil assocs) -> untyped

This signature was generated using 1 sample from 1 application.

on_hash: ((nil | Array[AssocNew | AssocSplat]) assocs) -> HashLiteral
:call-seq:
def on_hash(assocs)
  lbrace = consume_token(LBrace)
  rbrace = consume_token(RBrace)
  HashLiteral.new(
    lbrace: lbrace,
    assocs: assocs || [],
    location: lbrace.location.to(rbrace.location)
  )
end