Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 56 additions & 56 deletions fixtures/aritmeticops.py.uast
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: Add {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Add,Arithmetic
. . . . . . . TOKEN "+"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -60,13 +67,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: Add {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Add,Arithmetic
. . . . . . . TOKEN "+"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down Expand Up @@ -110,7 +110,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: Sub {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Substract,Arithmetic
. . . . . . . TOKEN "-"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -127,13 +134,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: Sub {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Substract,Arithmetic
. . . . . . . TOKEN "-"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down Expand Up @@ -177,7 +177,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: Mult {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Multiply,Arithmetic
. . . . . . . TOKEN "*"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -194,13 +201,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: Mult {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Multiply,Arithmetic
. . . . . . . TOKEN "*"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down Expand Up @@ -244,7 +244,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: Div {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic
. . . . . . . TOKEN "/"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -261,13 +268,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: Div {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic
. . . . . . . TOKEN "/"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down Expand Up @@ -311,7 +311,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: FloorDiv {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic,Incomplete
. . . . . . . TOKEN "//"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -328,13 +335,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: FloorDiv {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic,Incomplete
. . . . . . . TOKEN "//"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down Expand Up @@ -378,7 +378,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: Mod {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Modulo,Arithmetic
. . . . . . . TOKEN "%%"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -395,13 +402,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: Mod {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Modulo,Arithmetic
. . . . . . . TOKEN "%%"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down Expand Up @@ -445,7 +445,14 @@ Module {
. . . . . . . . internalRole: left
. . . . . . . }
. . . . . . }
. . . . . . 1: Num {
. . . . . . 1: Pow {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Arithmetic,Incomplete
. . . . . . . TOKEN "**"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . . 2: Num {
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
. . . . . . . TOKEN "2"
. . . . . . . StartPosition: {
Expand All @@ -462,13 +469,6 @@ Module {
. . . . . . . . internalRole: right
. . . . . . . }
. . . . . . }
. . . . . . 2: Pow {
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Arithmetic,Incomplete
. . . . . . . TOKEN "**"
. . . . . . . Properties: {
. . . . . . . . internalRole: op
. . . . . . . }
. . . . . . }
. . . . . }
. . . . }
. . . }
Expand Down
72 changes: 36 additions & 36 deletions fixtures/augassign.py.uast
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ Module {
. . . . internalRole: body
. . . }
. . . Children: {
. . . . 0: Name {
. . . . 0: Add {
. . . . . Roles: Binary,Operator,Add,Arithmetic,Operator,Binary
. . . . . TOKEN "+"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . . 1: Name {
. . . . . Roles: Left,Identifier,Expression
. . . . . TOKEN "a"
. . . . . StartPosition: {
Expand All @@ -39,7 +46,7 @@ Module {
. . . . . . internalRole: target
. . . . . }
. . . . }
. . . . 1: Num {
. . . . 2: Num {
. . . . . Roles: Literal,Number,Expression,Primitive,Right
. . . . . TOKEN "1"
. . . . . StartPosition: {
Expand All @@ -56,13 +63,6 @@ Module {
. . . . . . internalRole: value
. . . . . }
. . . . }
. . . . 2: Add {
. . . . . Roles: Binary,Operator,Add,Arithmetic,Operator,Binary
. . . . . TOKEN "+"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . }
. . }
. . 1: AugAssign {
Expand All @@ -77,7 +77,14 @@ Module {
. . . . internalRole: body
. . . }
. . . Children: {
. . . . 0: Name {
. . . . 0: Sub {
. . . . . Roles: Binary,Operator,Substract,Arithmetic,Operator,Binary
. . . . . TOKEN "-"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . . 1: Name {
. . . . . Roles: Left,Identifier,Expression
. . . . . TOKEN "a"
. . . . . StartPosition: {
Expand All @@ -95,7 +102,7 @@ Module {
. . . . . . internalRole: target
. . . . . }
. . . . }
. . . . 1: Num {
. . . . 2: Num {
. . . . . Roles: Literal,Number,Expression,Primitive,Right
. . . . . TOKEN "1"
. . . . . StartPosition: {
Expand All @@ -112,13 +119,6 @@ Module {
. . . . . . internalRole: value
. . . . . }
. . . . }
. . . . 2: Sub {
. . . . . Roles: Binary,Operator,Substract,Arithmetic,Operator,Binary
. . . . . TOKEN "-"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . }
. . }
. . 2: AugAssign {
Expand All @@ -133,7 +133,14 @@ Module {
. . . . internalRole: body
. . . }
. . . Children: {
. . . . 0: Name {
. . . . 0: Mult {
. . . . . Roles: Binary,Operator,Multiply,Arithmetic,Operator,Binary
. . . . . TOKEN "*"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . . 1: Name {
. . . . . Roles: Left,Identifier,Expression
. . . . . TOKEN "a"
. . . . . StartPosition: {
Expand All @@ -151,7 +158,7 @@ Module {
. . . . . . internalRole: target
. . . . . }
. . . . }
. . . . 1: Num {
. . . . 2: Num {
. . . . . Roles: Literal,Number,Expression,Primitive,Right
. . . . . TOKEN "1"
. . . . . StartPosition: {
Expand All @@ -168,13 +175,6 @@ Module {
. . . . . . internalRole: value
. . . . . }
. . . . }
. . . . 2: Mult {
. . . . . Roles: Binary,Operator,Multiply,Arithmetic,Operator,Binary
. . . . . TOKEN "*"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . }
. . }
. . 3: AugAssign {
Expand All @@ -189,7 +189,14 @@ Module {
. . . . internalRole: body
. . . }
. . . Children: {
. . . . 0: Name {
. . . . 0: Div {
. . . . . Roles: Binary,Operator,Divide,Arithmetic,Operator,Binary
. . . . . TOKEN "/"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . . 1: Name {
. . . . . Roles: Left,Identifier,Expression
. . . . . TOKEN "a"
. . . . . StartPosition: {
Expand All @@ -207,7 +214,7 @@ Module {
. . . . . . internalRole: target
. . . . . }
. . . . }
. . . . 1: Num {
. . . . 2: Num {
. . . . . Roles: Literal,Number,Expression,Primitive,Right
. . . . . TOKEN "1"
. . . . . StartPosition: {
Expand All @@ -224,13 +231,6 @@ Module {
. . . . . . internalRole: value
. . . . . }
. . . . }
. . . . 2: Div {
. . . . . Roles: Binary,Operator,Divide,Arithmetic,Operator,Binary
. . . . . TOKEN "/"
. . . . . Properties: {
. . . . . . internalRole: op
. . . . . }
. . . . }
. . . }
. . }
. }
Expand Down
Loading