diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 5c105f47c..206534ec6 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -236,7 +236,7 @@ singletonMethod = makeTerm <$> symbol SingletonMethod <*> children (Declaration. lambda :: Assignment lambda = symbol Lambda >>= \ loc -> children $ do - name <- makeTerm loc <$> (Syntax.Empty <$ source) + name <- emptyTerm params <- (symbol BlockParameters <|> symbol LambdaParameters) *> children (many parameter) <|> pure [] body <- expressions pure $ makeTerm loc (Declaration.Function [] name params body)