Fix parsing of member access and function calls

This commit is contained in:
Jonathan Turner
2011-06-13 07:43:51 -07:00
parent 9e9fb3ad7d
commit 5426496b4f
6 changed files with 38 additions and 6 deletions

View File

@@ -0,0 +1 @@
assert_equal(2, `+`.get_contained_functions()[0].get_arity())

View File

@@ -0,0 +1 @@
assert_equal(1, [1,2,3][0])

View File

@@ -0,0 +1,2 @@
var x = [1]
assert_equal(1, x[0])

View File

@@ -0,0 +1 @@
assert_equal(1, ([1,2,3])[0])