class Solargraph::Parser::ParserGem::NodeChainer

def hash_is_splatted? node

Parameters:
  • node (Parser::AST::Node) --
def hash_is_splatted? node
  return false unless Parser.is_ast_node?(node) && node.type == :hash
  return false unless Parser.is_ast_node?(node.children.last) && node.children.last.type == :kwsplat
  return false if Parser.is_ast_node?(node.children.last.children[0]) && node.children.last.children[0].type == :hash
  true
end