mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Transition ruby test fixtures
This commit is contained in:
parent
ef17e87366
commit
ea453bf57e
4
test/fixtures/ruby/and-or.A.rb
vendored
4
test/fixtures/ruby/and-or.A.rb
vendored
@ -1,3 +1 @@
|
||||
foo and bar
|
||||
bar or foo
|
||||
bar and foo
|
||||
foo and bar
|
1
test/fixtures/ruby/and-or.B.rb
vendored
1
test/fixtures/ruby/and-or.B.rb
vendored
@ -1 +1,2 @@
|
||||
foo or bar
|
||||
a or b and c
|
13
test/fixtures/ruby/and-or.diffA-B.txt
vendored
13
test/fixtures/ruby/and-or.diffA-B.txt
vendored
@ -7,11 +7,10 @@
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier)) }
|
||||
{-(Binary
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier))-}
|
||||
{-(Binary
|
||||
(Identifier)
|
||||
{+(Binary
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier))
|
||||
(Other "and")
|
||||
(Identifier))-})
|
||||
(Identifier))+})
|
21
test/fixtures/ruby/and-or.diffB-A.txt
vendored
21
test/fixtures/ruby/and-or.diffB-A.txt
vendored
@ -1,15 +1,16 @@
|
||||
(Program
|
||||
{+(Binary
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "and")
|
||||
(Identifier))+}
|
||||
(Binary
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Other "or")
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{+(Binary
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "and")
|
||||
(Identifier))+})
|
||||
(Identifier)) }
|
||||
{-(Binary
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier))
|
||||
(Other "and")
|
||||
(Identifier))-})
|
10
test/fixtures/ruby/and-or.parseA.txt
vendored
10
test/fixtures/ruby/and-or.parseA.txt
vendored
@ -2,12 +2,4 @@
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "and")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "and")
|
||||
(Identifier)))
|
||||
(Identifier)))
|
9
test/fixtures/ruby/and-or.parseB.txt
vendored
9
test/fixtures/ruby/and-or.parseB.txt
vendored
@ -2,4 +2,11 @@
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "or")
|
||||
(Identifier))
|
||||
(Other "and")
|
||||
(Identifier)))
|
1
test/fixtures/ruby/array.A.rb
vendored
Normal file
1
test/fixtures/ruby/array.A.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
[ 1, 2, 3]
|
1
test/fixtures/ruby/array.B.rb
vendored
Normal file
1
test/fixtures/ruby/array.B.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
['a', 'b', 'c']
|
8
test/fixtures/ruby/array.diffA-B.txt
vendored
Normal file
8
test/fixtures/ruby/array.diffA-B.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Program
|
||||
(ArrayLiteral
|
||||
{+(StringLiteral)+}
|
||||
{+(StringLiteral)+}
|
||||
{+(StringLiteral)+}
|
||||
{-(IntegerLiteral)-}
|
||||
{-(IntegerLiteral)-}
|
||||
{-(IntegerLiteral)-}))
|
8
test/fixtures/ruby/array.diffB-A.txt
vendored
Normal file
8
test/fixtures/ruby/array.diffB-A.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Program
|
||||
(ArrayLiteral
|
||||
{+(IntegerLiteral)+}
|
||||
{+(IntegerLiteral)+}
|
||||
{+(IntegerLiteral)+}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}))
|
5
test/fixtures/ruby/array.parseA.txt
vendored
Normal file
5
test/fixtures/ruby/array.parseA.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(ArrayLiteral
|
||||
(IntegerLiteral)
|
||||
(IntegerLiteral)
|
||||
(IntegerLiteral)))
|
5
test/fixtures/ruby/array.parseB.txt
vendored
Normal file
5
test/fixtures/ruby/array.parseB.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(ArrayLiteral
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)))
|
1
test/fixtures/ruby/assignment.A.rb
vendored
Normal file
1
test/fixtures/ruby/assignment.A.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
x = 0
|
1
test/fixtures/ruby/assignment.B.rb
vendored
Normal file
1
test/fixtures/ruby/assignment.B.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
x = 1
|
5
test/fixtures/ruby/assignment.diffA-B.txt
vendored
Normal file
5
test/fixtures/ruby/assignment.diffA-B.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(Assignment
|
||||
(Identifier)
|
||||
{ (IntegerLiteral)
|
||||
->(IntegerLiteral) }))
|
5
test/fixtures/ruby/assignment.diffB-A.txt
vendored
Normal file
5
test/fixtures/ruby/assignment.diffB-A.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(Assignment
|
||||
(Identifier)
|
||||
{ (IntegerLiteral)
|
||||
->(IntegerLiteral) }))
|
4
test/fixtures/ruby/assignment.parseA.txt
vendored
Normal file
4
test/fixtures/ruby/assignment.parseA.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(Assignment
|
||||
(Identifier)
|
||||
(IntegerLiteral)))
|
4
test/fixtures/ruby/assignment.parseB.txt
vendored
Normal file
4
test/fixtures/ruby/assignment.parseB.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(Assignment
|
||||
(Identifier)
|
||||
(IntegerLiteral)))
|
3
test/fixtures/ruby/begin-block.A.rb
vendored
Normal file
3
test/fixtures/ruby/begin-block.A.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
BEGIN {
|
||||
foo
|
||||
}
|
4
test/fixtures/ruby/begin-block.B.rb
vendored
Normal file
4
test/fixtures/ruby/begin-block.B.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
foo
|
||||
BEGIN {
|
||||
bar
|
||||
}
|
5
test/fixtures/ruby/begin-block.diffA-B.txt
vendored
Normal file
5
test/fixtures/ruby/begin-block.diffA-B.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
{+(Identifier)+}
|
||||
(BeginBlock
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
6
test/fixtures/ruby/begin-block.diffB-A.txt
vendored
Normal file
6
test/fixtures/ruby/begin-block.diffB-A.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
(Program
|
||||
{+(BeginBlock
|
||||
(Identifier))+}
|
||||
{-(Identifier)-}
|
||||
{-(BeginBlock
|
||||
(Identifier))-})
|
3
test/fixtures/ruby/begin-block.parseA.txt
vendored
Normal file
3
test/fixtures/ruby/begin-block.parseA.txt
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
(Program
|
||||
(BeginBlock
|
||||
(Identifier)))
|
4
test/fixtures/ruby/begin-block.parseB.txt
vendored
Normal file
4
test/fixtures/ruby/begin-block.parseB.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(Identifier)
|
||||
(BeginBlock
|
||||
(Identifier)))
|
4
test/fixtures/ruby/begin.A.rb
vendored
Normal file
4
test/fixtures/ruby/begin.A.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
def foo
|
||||
begin
|
||||
end
|
||||
end
|
5
test/fixtures/ruby/begin.B.rb
vendored
Normal file
5
test/fixtures/ruby/begin.B.rb
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
def foo
|
||||
begin
|
||||
puts 'hi'
|
||||
end
|
||||
end
|
7
test/fixtures/ruby/begin.diffA-B.txt
vendored
Normal file
7
test/fixtures/ruby/begin.diffA-B.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Method
|
||||
(Identifier)
|
||||
(Begin
|
||||
{+(MethodCall
|
||||
(Identifier)
|
||||
(StringLiteral))+})))
|
7
test/fixtures/ruby/begin.diffB-A.txt
vendored
Normal file
7
test/fixtures/ruby/begin.diffB-A.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Method
|
||||
(Identifier)
|
||||
(Begin
|
||||
{-(MethodCall
|
||||
(Identifier)
|
||||
(StringLiteral))-})))
|
4
test/fixtures/ruby/begin.parseA.txt
vendored
Normal file
4
test/fixtures/ruby/begin.parseA.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(Method
|
||||
(Identifier)
|
||||
(Begin)))
|
7
test/fixtures/ruby/begin.parseB.txt
vendored
Normal file
7
test/fixtures/ruby/begin.parseB.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Method
|
||||
(Identifier)
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(StringLiteral)))))
|
3
test/fixtures/ruby/bitwise-operator.A.rb
vendored
Normal file
3
test/fixtures/ruby/bitwise-operator.A.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
a | b
|
||||
a >> b
|
||||
a ^ b
|
2
test/fixtures/ruby/bitwise-operator.B.rb
vendored
Normal file
2
test/fixtures/ruby/bitwise-operator.B.rb
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
a & b
|
||||
a << b
|
21
test/fixtures/ruby/bitwise-operator.diffA-B.txt
vendored
Normal file
21
test/fixtures/ruby/bitwise-operator.diffA-B.txt
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
(Program
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "|")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "&")
|
||||
(Identifier)) }
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other ">>")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "<<")
|
||||
(Identifier)) }
|
||||
{-(Binary
|
||||
(Identifier)
|
||||
(Other "^")
|
||||
(Identifier))-})
|
21
test/fixtures/ruby/bitwise-operator.diffB-A.txt
vendored
Normal file
21
test/fixtures/ruby/bitwise-operator.diffB-A.txt
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
(Program
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "&")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "|")
|
||||
(Identifier)) }
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "<<")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other ">>")
|
||||
(Identifier)) }
|
||||
{+(Binary
|
||||
(Identifier)
|
||||
(Other "^")
|
||||
(Identifier))+})
|
13
test/fixtures/ruby/bitwise-operator.parseA.txt
vendored
Normal file
13
test/fixtures/ruby/bitwise-operator.parseA.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Program
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "|")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other ">>")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "^")
|
||||
(Identifier)))
|
9
test/fixtures/ruby/bitwise-operator.parseB.txt
vendored
Normal file
9
test/fixtures/ruby/bitwise-operator.parseB.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "&")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "<<")
|
||||
(Identifier)))
|
1
test/fixtures/ruby/boolean-operator.A.rb
vendored
Normal file
1
test/fixtures/ruby/boolean-operator.A.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
a || b
|
1
test/fixtures/ruby/boolean-operator.B.rb
vendored
Normal file
1
test/fixtures/ruby/boolean-operator.B.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
a && b
|
9
test/fixtures/ruby/boolean-operator.diffA-B.txt
vendored
Normal file
9
test/fixtures/ruby/boolean-operator.diffA-B.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "||")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "&&")
|
||||
(Identifier)) })
|
9
test/fixtures/ruby/boolean-operator.diffB-A.txt
vendored
Normal file
9
test/fixtures/ruby/boolean-operator.diffB-A.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "&&")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "||")
|
||||
(Identifier)) })
|
5
test/fixtures/ruby/boolean-operator.parseA.txt
vendored
Normal file
5
test/fixtures/ruby/boolean-operator.parseA.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "||")
|
||||
(Identifier)))
|
5
test/fixtures/ruby/boolean-operator.parseB.txt
vendored
Normal file
5
test/fixtures/ruby/boolean-operator.parseB.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "&&")
|
||||
(Identifier)))
|
3
test/fixtures/ruby/class.A.rb
vendored
Normal file
3
test/fixtures/ruby/class.A.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
class Foo < Super
|
||||
def test; end
|
||||
end
|
3
test/fixtures/ruby/class.B.rb
vendored
Normal file
3
test/fixtures/ruby/class.B.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
class Foo
|
||||
def test; end
|
||||
end
|
7
test/fixtures/ruby/class.diffA-B.txt
vendored
Normal file
7
test/fixtures/ruby/class.diffA-B.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Class
|
||||
(Constant)
|
||||
{-(Superclass
|
||||
(Constant))-}
|
||||
(Method
|
||||
(Identifier))))
|
7
test/fixtures/ruby/class.diffB-A.txt
vendored
Normal file
7
test/fixtures/ruby/class.diffB-A.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Class
|
||||
(Constant)
|
||||
{+(Superclass
|
||||
(Constant))+}
|
||||
(Method
|
||||
(Identifier))))
|
7
test/fixtures/ruby/class.parseA.txt
vendored
Normal file
7
test/fixtures/ruby/class.parseA.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Class
|
||||
(Constant)
|
||||
(Superclass
|
||||
(Constant))
|
||||
(Method
|
||||
(Identifier))))
|
5
test/fixtures/ruby/class.parseB.txt
vendored
Normal file
5
test/fixtures/ruby/class.parseB.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(Class
|
||||
(Constant)
|
||||
(Method
|
||||
(Identifier))))
|
1
test/fixtures/ruby/comment.A.rb
vendored
Normal file
1
test/fixtures/ruby/comment.A.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
# This is a comment
|
4
test/fixtures/ruby/comment.B.rb
vendored
Normal file
4
test/fixtures/ruby/comment.B.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
=begin
|
||||
This is a multiline
|
||||
comment
|
||||
=end
|
14
test/fixtures/ruby/comment.diffA-B.txt
vendored
Normal file
14
test/fixtures/ruby/comment.diffA-B.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Program
|
||||
{+(ParseError
|
||||
(Other "right_assignment_list"
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Constant)
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(Identifier))))
|
||||
(Identifier)
|
||||
(ParseError))))+}
|
||||
{-(Comment)-})
|
14
test/fixtures/ruby/comment.diffB-A.txt
vendored
Normal file
14
test/fixtures/ruby/comment.diffB-A.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Program
|
||||
{+(Comment)+}
|
||||
{-(ParseError
|
||||
(Other "right_assignment_list"
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Constant)
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(Identifier))))
|
||||
(Identifier)
|
||||
(ParseError))))-})
|
2
test/fixtures/ruby/comment.parseA.txt
vendored
Normal file
2
test/fixtures/ruby/comment.parseA.txt
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
(Program
|
||||
(Comment))
|
13
test/fixtures/ruby/comment.parseB.txt
vendored
Normal file
13
test/fixtures/ruby/comment.parseB.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Program
|
||||
(ParseError
|
||||
(Other "right_assignment_list"
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Constant)
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier)
|
||||
(Identifier))))
|
||||
(Identifier)
|
||||
(ParseError)))))
|
2
test/fixtures/ruby/comparision-operator.A.rb
vendored
Normal file
2
test/fixtures/ruby/comparision-operator.A.rb
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
x < y
|
||||
a > b
|
2
test/fixtures/ruby/comparision-operator.B.rb
vendored
Normal file
2
test/fixtures/ruby/comparision-operator.B.rb
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
x <= y
|
||||
a >= b
|
17
test/fixtures/ruby/comparision-operator.diffA-B.txt
vendored
Normal file
17
test/fixtures/ruby/comparision-operator.diffA-B.txt
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
(Program
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "<")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "<=")
|
||||
(Identifier)) }
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other ">")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other ">=")
|
||||
(Identifier)) })
|
17
test/fixtures/ruby/comparision-operator.diffB-A.txt
vendored
Normal file
17
test/fixtures/ruby/comparision-operator.diffB-A.txt
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
(Program
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other "<=")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other "<")
|
||||
(Identifier)) }
|
||||
{ (Binary
|
||||
(Identifier)
|
||||
(Other ">=")
|
||||
(Identifier))
|
||||
->(Binary
|
||||
(Identifier)
|
||||
(Other ">")
|
||||
(Identifier)) })
|
9
test/fixtures/ruby/comparision-operator.parseA.txt
vendored
Normal file
9
test/fixtures/ruby/comparision-operator.parseA.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "<")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other ">")
|
||||
(Identifier)))
|
9
test/fixtures/ruby/comparision-operator.parseB.txt
vendored
Normal file
9
test/fixtures/ruby/comparision-operator.parseB.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other "<=")
|
||||
(Identifier))
|
||||
(Binary
|
||||
(Identifier)
|
||||
(Other ">=")
|
||||
(Identifier)))
|
1
test/fixtures/ruby/conditional-assignment.A.rb
vendored
Normal file
1
test/fixtures/ruby/conditional-assignment.A.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
x ||= 5
|
1
test/fixtures/ruby/conditional-assignment.B.rb
vendored
Normal file
1
test/fixtures/ruby/conditional-assignment.B.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
x &&= 7
|
5
test/fixtures/ruby/conditional-assignment.diffA-B.txt
vendored
Normal file
5
test/fixtures/ruby/conditional-assignment.diffA-B.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(OperatorAssignment
|
||||
(Identifier)
|
||||
{ (IntegerLiteral)
|
||||
->(IntegerLiteral) }))
|
5
test/fixtures/ruby/conditional-assignment.diffB-A.txt
vendored
Normal file
5
test/fixtures/ruby/conditional-assignment.diffB-A.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(OperatorAssignment
|
||||
(Identifier)
|
||||
{ (IntegerLiteral)
|
||||
->(IntegerLiteral) }))
|
4
test/fixtures/ruby/conditional-assignment.parseA.txt
vendored
Normal file
4
test/fixtures/ruby/conditional-assignment.parseA.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(OperatorAssignment
|
||||
(Identifier)
|
||||
(IntegerLiteral)))
|
4
test/fixtures/ruby/conditional-assignment.parseB.txt
vendored
Normal file
4
test/fixtures/ruby/conditional-assignment.parseB.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(OperatorAssignment
|
||||
(Identifier)
|
||||
(IntegerLiteral)))
|
6
test/fixtures/ruby/delimiter.A.rb
vendored
Normal file
6
test/fixtures/ruby/delimiter.A.rb
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
%q#a#
|
||||
%q<a<b>c>
|
||||
%#a#
|
||||
%Q#a#
|
||||
%<a<b>c>
|
||||
%Q<a<b>c>
|
6
test/fixtures/ruby/delimiter.B.rb
vendored
Normal file
6
test/fixtures/ruby/delimiter.B.rb
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
%q/b/
|
||||
%q{d{e}f}
|
||||
%/b/
|
||||
%Q/b/
|
||||
%{d{e}f}
|
||||
%Q{d{e}f}
|
13
test/fixtures/ruby/delimiter.diffA-B.txt
vendored
Normal file
13
test/fixtures/ruby/delimiter.diffA-B.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Program
|
||||
{+(StringLiteral)+}
|
||||
{+(StringLiteral)+}
|
||||
{ (StringLiteral)
|
||||
->(StringLiteral) }
|
||||
{+(StringLiteral)+}
|
||||
{+(StringLiteral)+}
|
||||
{+(StringLiteral)+}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-})
|
13
test/fixtures/ruby/delimiter.diffB-A.txt
vendored
Normal file
13
test/fixtures/ruby/delimiter.diffB-A.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Program
|
||||
{+(StringLiteral)+}
|
||||
{ (StringLiteral)
|
||||
->(StringLiteral) }
|
||||
{+(StringLiteral)+}
|
||||
{ (StringLiteral)
|
||||
->(StringLiteral) }
|
||||
{+(StringLiteral)+}
|
||||
{+(StringLiteral)+}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-}
|
||||
{-(StringLiteral)-})
|
7
test/fixtures/ruby/delimiter.parseA.txt
vendored
Normal file
7
test/fixtures/ruby/delimiter.parseA.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral))
|
7
test/fixtures/ruby/delimiter.parseB.txt
vendored
Normal file
7
test/fixtures/ruby/delimiter.parseB.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral)
|
||||
(StringLiteral))
|
3
test/fixtures/ruby/element-reference.A.rb
vendored
Normal file
3
test/fixtures/ruby/element-reference.A.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
foo[bar]
|
||||
foo[:bar]
|
||||
foo[bar] = 1
|
2
test/fixtures/ruby/element-reference.B.rb
vendored
Normal file
2
test/fixtures/ruby/element-reference.B.rb
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
x["b"]
|
||||
x[:"c"]
|
17
test/fixtures/ruby/element-reference.diffA-B.txt
vendored
Normal file
17
test/fixtures/ruby/element-reference.diffA-B.txt
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
(Program
|
||||
{ (SubscriptAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
->(SubscriptAccess
|
||||
(Identifier)
|
||||
(StringLiteral)) }
|
||||
(SubscriptAccess
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (SymbolLiteral)
|
||||
->(SymbolLiteral) })
|
||||
{-(Assignment
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(IntegerLiteral))-})
|
17
test/fixtures/ruby/element-reference.diffB-A.txt
vendored
Normal file
17
test/fixtures/ruby/element-reference.diffB-A.txt
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
(Program
|
||||
{ (SubscriptAccess
|
||||
(Identifier)
|
||||
(StringLiteral))
|
||||
->(SubscriptAccess
|
||||
(Identifier)
|
||||
(Identifier)) }
|
||||
(SubscriptAccess
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (SymbolLiteral)
|
||||
->(SymbolLiteral) })
|
||||
{+(Assignment
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(IntegerLiteral))+})
|
12
test/fixtures/ruby/element-reference.parseA.txt
vendored
Normal file
12
test/fixtures/ruby/element-reference.parseA.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
(Program
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(SymbolLiteral))
|
||||
(Assignment
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(IntegerLiteral)))
|
7
test/fixtures/ruby/element-reference.parseB.txt
vendored
Normal file
7
test/fixtures/ruby/element-reference.parseB.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(StringLiteral))
|
||||
(SubscriptAccess
|
||||
(Identifier)
|
||||
(SymbolLiteral)))
|
4
test/fixtures/ruby/else.A.rb
vendored
Normal file
4
test/fixtures/ruby/else.A.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
begin
|
||||
foo()
|
||||
else
|
||||
end
|
5
test/fixtures/ruby/else.B.rb
vendored
Normal file
5
test/fixtures/ruby/else.B.rb
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
begin
|
||||
foo()
|
||||
else
|
||||
bar()
|
||||
end
|
8
test/fixtures/ruby/else.diffA-B.txt
vendored
Normal file
8
test/fixtures/ruby/else.diffA-B.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Program
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
{ (Else)
|
||||
->(Else
|
||||
(MethodCall
|
||||
(Identifier))) }))
|
8
test/fixtures/ruby/else.diffB-A.txt
vendored
Normal file
8
test/fixtures/ruby/else.diffB-A.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Program
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
{ (Else
|
||||
(MethodCall
|
||||
(Identifier)))
|
||||
->(Else) }))
|
5
test/fixtures/ruby/else.parseA.txt
vendored
Normal file
5
test/fixtures/ruby/else.parseA.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
(Else)))
|
7
test/fixtures/ruby/else.parseB.txt
vendored
Normal file
7
test/fixtures/ruby/else.parseB.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(Begin
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
(Else
|
||||
(MethodCall
|
||||
(Identifier)))))
|
4
test/fixtures/ruby/elsif.A.rb
vendored
Normal file
4
test/fixtures/ruby/elsif.A.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
if bar
|
||||
foo()
|
||||
elsif baz
|
||||
end
|
5
test/fixtures/ruby/elsif.B.rb
vendored
Normal file
5
test/fixtures/ruby/elsif.B.rb
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
if bar
|
||||
foo()
|
||||
elsif baz
|
||||
qoz()
|
||||
end
|
9
test/fixtures/ruby/elsif.diffA-B.txt
vendored
Normal file
9
test/fixtures/ruby/elsif.diffA-B.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(If
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
(Elsif
|
||||
(Identifier)
|
||||
{+(MethodCall
|
||||
(Identifier))+})))
|
9
test/fixtures/ruby/elsif.diffB-A.txt
vendored
Normal file
9
test/fixtures/ruby/elsif.diffB-A.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(If
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
(Elsif
|
||||
(Identifier)
|
||||
{-(MethodCall
|
||||
(Identifier))-})))
|
7
test/fixtures/ruby/elsif.parseA.txt
vendored
Normal file
7
test/fixtures/ruby/elsif.parseA.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Program
|
||||
(If
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
(Elsif
|
||||
(Identifier))))
|
9
test/fixtures/ruby/elsif.parseB.txt
vendored
Normal file
9
test/fixtures/ruby/elsif.parseB.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(If
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier))
|
||||
(Elsif
|
||||
(Identifier)
|
||||
(MethodCall
|
||||
(Identifier)))))
|
3
test/fixtures/ruby/end-block.A.rb
vendored
Normal file
3
test/fixtures/ruby/end-block.A.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
END {
|
||||
foo
|
||||
}
|
4
test/fixtures/ruby/end-block.B.rb
vendored
Normal file
4
test/fixtures/ruby/end-block.B.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
foo
|
||||
END {
|
||||
bar
|
||||
}
|
5
test/fixtures/ruby/end-block.diffA-B.txt
vendored
Normal file
5
test/fixtures/ruby/end-block.diffA-B.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program
|
||||
{+(Identifier)+}
|
||||
(EndBlock
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
6
test/fixtures/ruby/end-block.diffB-A.txt
vendored
Normal file
6
test/fixtures/ruby/end-block.diffB-A.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
(Program
|
||||
{+(EndBlock
|
||||
(Identifier))+}
|
||||
{-(Identifier)-}
|
||||
{-(EndBlock
|
||||
(Identifier))-})
|
3
test/fixtures/ruby/end-block.parseA.txt
vendored
Normal file
3
test/fixtures/ruby/end-block.parseA.txt
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
(Program
|
||||
(EndBlock
|
||||
(Identifier)))
|
4
test/fixtures/ruby/end-block.parseB.txt
vendored
Normal file
4
test/fixtures/ruby/end-block.parseB.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Program
|
||||
(Identifier)
|
||||
(EndBlock
|
||||
(Identifier)))
|
4
test/fixtures/ruby/ensure.A.rb
vendored
Normal file
4
test/fixtures/ruby/ensure.A.rb
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
begin
|
||||
foo
|
||||
ensure
|
||||
end
|
5
test/fixtures/ruby/ensure.B.rb
vendored
Normal file
5
test/fixtures/ruby/ensure.B.rb
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
begin
|
||||
foo
|
||||
ensure
|
||||
bar
|
||||
end
|
6
test/fixtures/ruby/ensure.diffA-B.txt
vendored
Normal file
6
test/fixtures/ruby/ensure.diffA-B.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
(Program
|
||||
(Begin
|
||||
(Identifier)
|
||||
{ (Ensure)
|
||||
->(Ensure
|
||||
(Identifier)) }))
|
6
test/fixtures/ruby/ensure.diffB-A.txt
vendored
Normal file
6
test/fixtures/ruby/ensure.diffB-A.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
(Program
|
||||
(Begin
|
||||
(Identifier)
|
||||
{ (Ensure
|
||||
(Identifier))
|
||||
->(Ensure) }))
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user