1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00

ruby: hack in super call support for now

This commit is contained in:
Charlie Somerville 2018-04-10 14:05:16 +10:00
parent 210ff626f1
commit 0013bf1975

View File

@ -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)