From 0013bf1975d481f65bb8d903fd216ec076e56b88 Mon Sep 17 00:00:00 2001 From: Charlie Somerville Date: Tue, 10 Apr 2018 14:05:16 +1000 Subject: [PATCH] ruby: hack in super call support for now --- src/Language/Ruby/Assignment.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Language/Ruby/Assignment.hs b/src/Language/Ruby/Assignment.hs index cebfac3d4..d02771e68 100644 --- a/src/Language/Ruby/Assignment.hs +++ b/src/Language/Ruby/Assignment.hs @@ -319,6 +319,7 @@ methodSelector = makeTerm <$> symbols <*> (Syntax.Identifier <$> (name <$> sourc <|> symbol Identifier' <|> symbol Constant <|> symbol Operator + <|> symbol Super -- TODO(@charliesome): super calls are *not* method calls and need to be assigned into their own syntax terms call :: Assignment call = makeTerm <$> symbol Call <*> children (Ruby.Syntax.Send <$> (Just <$> term expression) <*> methodSelector <*> many expression <*> optional block)