1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

Re-generate test with addition of statements in python assignment

This commit is contained in:
Timothy Clem 2018-11-05 13:12:50 -08:00
parent bdb7ee0430
commit e14f59b165
20 changed files with 281 additions and 214 deletions

View File

@ -3,20 +3,24 @@
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+})+} {+(Statements
{+(Identifier)+})+})+}
(Function (Function
(Identifier) (Identifier)
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
(Function (Function
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{-(Identifier)-} {-(Identifier)-}
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
{-(Function {-(Function
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-})-}) {-(Statements
{-(Identifier)-})-})-})

View File

@ -3,20 +3,24 @@
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-})-} {-(Statements
{-(Identifier)-})-})-}
(Function (Function
(Identifier) (Identifier)
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
(Function (Function
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{+(Identifier)+} {+(Identifier)+}
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
{+(Function {+(Function
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+})+}) {+(Statements
{+(Identifier)+})+})+})

View File

@ -1,13 +1,16 @@
(Statements (Statements
(Function (Function
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier))) (Statements
(Identifier))))

View File

@ -3,11 +3,14 @@
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier))) (Statements
(Identifier))))

View File

@ -3,24 +3,29 @@
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{+(Identifier)+} {+(Identifier)+}
(Function (Statements
{ (Identifier) (Function
->(Identifier) }
(Identifier)
(Return
{ (Identifier) { (Identifier)
->(Empty) }))) ->(Identifier) }
(Identifier)
(Statements
(Return
{ (Identifier)
->(Empty) })))))
{-(Class {-(Class
{-(Identifier)-} {-(Identifier)-}
{-(NoOp {-(Statements
{-(Empty)-})-})-} {-(NoOp
{-(Empty)-})-})-})-}
(Class (Class
(Identifier) (Identifier)
{-(Identifier)-} {-(Identifier)-}
(Function (Statements
{ (Identifier) (Function
->(Identifier) } { (Identifier)
(Identifier) ->(Identifier) }
(Return (Identifier)
{ (Empty) (Statements
->(Identifier) })))) (Return
{ (Empty)
->(Identifier) }))))))

View File

@ -3,24 +3,29 @@
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{-(Identifier)-} {-(Identifier)-}
(Function (Statements
{ (Identifier) (Function
->(Identifier) } { (Identifier)
(Identifier) ->(Identifier) }
(Return (Identifier)
{ (Empty) (Statements
->(Identifier) }))) (Return
{ (Empty)
->(Identifier) })))))
{+(Class {+(Class
{+(Identifier)+} {+(Identifier)+}
{+(NoOp {+(Statements
{+(Empty)+})+})+} {+(NoOp
{+(Empty)+})+})+})+}
(Class (Class
(Identifier) (Identifier)
{+(Identifier)+} {+(Identifier)+}
(Function (Statements
{ (Identifier) (Function
->(Identifier) }
(Identifier)
(Return
{ (Identifier) { (Identifier)
->(Empty) })))) ->(Identifier) }
(Identifier)
(Statements
(Return
{ (Identifier)
->(Empty) }))))))

View File

@ -1,20 +1,25 @@
(Statements (Statements
(Class (Class
(Identifier) (Identifier)
(Function (Statements
(Identifier) (Function
(Identifier) (Identifier)
(Return (Identifier)
(Identifier)))) (Statements
(Return
(Identifier))))))
(Class (Class
(Identifier) (Identifier)
(NoOp (Statements
(Empty))) (NoOp
(Empty))))
(Class (Class
(Identifier) (Identifier)
(Identifier) (Identifier)
(Function (Statements
(Identifier) (Function
(Identifier) (Identifier)
(Return (Identifier)
(Empty))))) (Statements
(Return
(Empty)))))))

View File

@ -2,15 +2,19 @@
(Class (Class
(Identifier) (Identifier)
(Identifier) (Identifier)
(Function (Statements
(Identifier) (Function
(Identifier) (Identifier)
(Return (Identifier)
(Empty)))) (Statements
(Return
(Empty))))))
(Class (Class
(Identifier) (Identifier)
(Function (Statements
(Identifier) (Function
(Identifier) (Identifier)
(Return (Identifier)
(Identifier))))) (Statements
(Return
(Identifier)))))))

View File

@ -4,51 +4,54 @@
(Class (Class
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Decorator (Statements
(Identifier)
(Statements)
(Decorator (Decorator
{ (Identifier) (Identifier)
->(Identifier) } (Statements)
{+(Identifier)+}
{-(Integer)-}
(Decorator (Decorator
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{+(Identifier)+} {+(Identifier)+}
{-(Statements {-(Integer)-}
{-(Integer)-}
{-(Integer)-})-}
(Decorator (Decorator
(Identifier) { (Identifier)
{+(Statements ->(Identifier) }
{+(Integer)+} {+(Identifier)+}
{+(Assignment {-(Statements
{-(Integer)-}
{-(Integer)-})-}
(Decorator
(Identifier)
{+(Statements
{+(Integer)+}
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{+(Identifier)+} {+(Identifier)+}
{+(Boolean)+})+} {+(Identifier)+})+}
{+(Identifier)+} {-(Assignment
{+(Identifier)+})+} {-(Identifier)-}
{-(Assignment {-(Boolean)-})-}
{-(Identifier)-} { (Decorator
{-(Boolean)-})-}
{ (Decorator
{-(Identifier)-}
{-(Identifier)-}
{-(Decorator
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-} {-(Identifier)-}
{-(Decorator {-(Decorator
{-(Identifier)-} {-(Identifier)-}
{-(Statements {-(Identifier)-}
{-(Integer)-} {-(Decorator
{-(Assignment {-(Identifier)-}
{-(Statements
{-(Integer)-}
{-(Assignment
{-(Identifier)-}
{-(Boolean)-})-}
{-(Identifier)-} {-(Identifier)-}
{-(Boolean)-})-} {-(Identifier)-})-}
{-(Identifier)-} {-(Function
{-(Identifier)-})-} {-(Identifier)-}
{-(Function {-(Statements
{-(Identifier)-} {-(Identifier)-})-})-})-})-})
{-(Identifier)-})-})-})-}) ->(Function
->(Function {+(Identifier)+}
{+(Identifier)+} {+(Statements
{+(Identifier)+}) }))))))) {+(Identifier)+})+}) }))))))))

View File

@ -4,51 +4,54 @@
(Class (Class
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Decorator (Statements
(Identifier)
(Statements)
(Decorator (Decorator
{ (Identifier) (Identifier)
->(Identifier) } (Statements)
{+(Integer)+}
{-(Identifier)-}
(Decorator (Decorator
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{+(Statements {+(Integer)+}
{+(Integer)+}
{+(Integer)+})+}
{-(Identifier)-} {-(Identifier)-}
(Decorator (Decorator
(Identifier) { (Identifier)
{+(Assignment ->(Identifier) }
{+(Identifier)+} {+(Statements
{+(Boolean)+})+} {+(Integer)+}
{-(Statements {+(Integer)+})+}
{-(Integer)-} {-(Identifier)-}
{-(Assignment (Decorator
(Identifier)
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{-(Statements
{-(Integer)-}
{-(Assignment
{-(Identifier)-}
{-(Boolean)-})-}
{-(Identifier)-} {-(Identifier)-}
{-(Boolean)-})-} {-(Identifier)-})-}
{-(Identifier)-} { (Function
{-(Identifier)-})-} {-(Identifier)-}
{ (Function {-(Statements
{-(Identifier)-} {-(Identifier)-})-})
{-(Identifier)-}) ->(Decorator
->(Decorator
{+(Identifier)+}
{+(Identifier)+}
{+(Decorator
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+} {+(Identifier)+}
{+(Decorator {+(Decorator
{+(Identifier)+} {+(Identifier)+}
{+(Statements {+(Identifier)+}
{+(Integer)+} {+(Decorator
{+(Assignment {+(Identifier)+}
{+(Statements
{+(Integer)+}
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{+(Identifier)+} {+(Identifier)+}
{+(Boolean)+})+} {+(Identifier)+})+}
{+(Identifier)+} {+(Function
{+(Identifier)+})+} {+(Identifier)+}
{+(Function {+(Statements
{+(Identifier)+} {+(Identifier)+})+})+})+})+}) }))))))))
{+(Identifier)+})+})+})+}) })))))))

View File

@ -3,37 +3,39 @@
(Identifier) (Identifier)
(Class (Class
(Identifier) (Identifier)
(Decorator (Statements
(Identifier)
(Statements)
(Decorator (Decorator
(Identifier) (Identifier)
(Integer) (Statements)
(Decorator (Decorator
(Identifier) (Identifier)
(Statements (Integer)
(Integer)
(Integer))
(Decorator (Decorator
(Identifier) (Identifier)
(Assignment (Statements
(Identifier) (Integer)
(Boolean)) (Integer))
(Decorator (Decorator
(Identifier) (Identifier)
(Identifier) (Assignment
(Identifier)
(Boolean))
(Decorator (Decorator
(Identifier) (Identifier)
(Identifier) (Identifier)
(Decorator (Decorator
(Identifier) (Identifier)
(Statements (Identifier)
(Integer) (Decorator
(Assignment (Identifier)
(Statements
(Integer)
(Assignment
(Identifier)
(Boolean))
(Identifier) (Identifier)
(Boolean)) (Identifier))
(Identifier) (Function
(Identifier)) (Identifier)
(Function (Statements
(Identifier) (Identifier))))))))))))))
(Identifier))))))))))))

View File

@ -3,24 +3,26 @@
(Identifier) (Identifier)
(Class (Class
(Identifier) (Identifier)
(Decorator (Statements
(Identifier)
(Statements)
(Decorator (Decorator
(Identifier) (Identifier)
(Identifier) (Statements)
(Decorator (Decorator
(Identifier) (Identifier)
(Identifier) (Identifier)
(Decorator (Decorator
(Identifier) (Identifier)
(Statements (Identifier)
(Integer) (Decorator
(Assignment (Identifier)
(Statements
(Integer)
(Assignment
(Identifier)
(Boolean))
(Identifier) (Identifier)
(Boolean)) (Identifier))
(Identifier) (Function
(Identifier)) (Identifier)
(Function (Statements
(Identifier) (Identifier)))))))))))
(Identifier)))))))))

View File

@ -1,31 +1,36 @@
(Statements (Statements
{-(Function {-(Function
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-})-} {-(Statements
{-(Identifier)-})-})-}
{-(Function {-(Function
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-})-} {-(Statements
{-(Identifier)-})-})-}
(Function (Function
(Identifier) (Identifier)
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
(Function (Function
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{-(Assignment {-(Assignment
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-})-} {-(Identifier)-})-}
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
{+(Function {+(Function
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+})+} {+(Statements
{+(Identifier)+})+})+}
(Function (Function
(Identifier) (Identifier)
(Annotation (Annotation
@ -37,4 +42,5 @@
->(Identifier) }) ->(Identifier) })
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Identifier))) (Statements
(Identifier))))

View File

@ -4,27 +4,31 @@
->(Identifier) } ->(Identifier) }
{-(Identifier)-} {-(Identifier)-}
{-(Identifier)-} {-(Identifier)-}
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
(Function (Function
(Identifier) (Identifier)
{+(Identifier)+} {+(Identifier)+}
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
(Function (Function
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{+(Identifier)+} {+(Identifier)+}
{ (Identifier) (Statements
->(Identifier) }) { (Identifier)
->(Identifier) }))
{+(Function {+(Function
{+(Identifier)+} {+(Identifier)+}
{+(Assignment {+(Assignment
{+(Identifier)+} {+(Identifier)+}
{+(Identifier)+})+} {+(Identifier)+})+}
{+(Identifier)+})+} {+(Statements
{+(Identifier)+})+})+}
(Function (Function
(Identifier) (Identifier)
(Annotation (Annotation
@ -36,4 +40,5 @@
->(Identifier) }) ->(Identifier) })
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Identifier))) (Statements
(Identifier))))

View File

@ -1,22 +1,26 @@
(Statements (Statements
(Function (Function
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Assignment (Assignment
(Identifier) (Identifier)
(Identifier)) (Identifier))
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Annotation (Annotation
@ -25,4 +29,5 @@
(TextElement)) (TextElement))
(Identifier)) (Identifier))
(Identifier) (Identifier)
(Identifier))) (Statements
(Identifier))))

View File

@ -3,14 +3,17 @@
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier)) (Statements
(Identifier)))
(Function (Function
(Identifier) (Identifier)
(Annotation (Annotation
@ -19,4 +22,5 @@
(Integer)) (Integer))
(Identifier)) (Identifier))
(Identifier) (Identifier)
(Identifier))) (Statements
(Identifier))))

View File

@ -2,7 +2,8 @@
(Function (Function
(Empty) (Empty)
{+(Identifier)+} {+(Identifier)+}
(Plus (Statements
{ (Integer) (Plus
->(Identifier) } { (Integer)
(Integer)))) ->(Identifier) }
(Integer)))))

View File

@ -2,7 +2,8 @@
(Function (Function
(Empty) (Empty)
{-(Identifier)-} {-(Identifier)-}
(Plus (Statements
{ (Identifier) (Plus
->(Integer) } { (Identifier)
(Integer)))) ->(Integer) }
(Integer)))))

View File

@ -1,6 +1,7 @@
(Statements (Statements
(Function (Function
(Empty) (Empty)
(Plus (Statements
(Integer) (Plus
(Integer)))) (Integer)
(Integer)))))

View File

@ -2,6 +2,7 @@
(Function (Function
(Empty) (Empty)
(Identifier) (Identifier)
(Plus (Statements
(Identifier) (Plus
(Integer)))) (Identifier)
(Integer)))))