Skip to content

Commit 920d3f9

Browse files
committed
remove type suffix from kinds in cst snapshots
context: #698 (comment)
1 parent ddfebfe commit 920d3f9

448 files changed

Lines changed: 6577 additions & 6585 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

crates/solidity/testing/snapshots/cst_output/AsciiStringLiterals/multiple/generated/0.4.11-success.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Source: >
66
Errors: []
77

88
Tree:
9-
- AsciiStringLiterals (Rule): # 0..11 '"foo" ''bar'''
10-
- AsciiStringLiteral (Token): '"foo"' # 0..5
11-
- AsciiStringLiteral (Token): "'bar'" # 6..11
9+
- AsciiStringLiterals: # 0..11 '"foo" ''bar'''
10+
- AsciiStringLiteral: '"foo"' # 0..5
11+
- AsciiStringLiteral: "'bar'" # 6..11

crates/solidity/testing/snapshots/cst_output/AsciiStringLiterals/single/generated/0.4.11-success.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Source: >
66
Errors: []
77

88
Tree:
9-
- AsciiStringLiterals (Rule): # 0..5 '"foo"'
10-
- AsciiStringLiteral (Token): '"foo"' # 0..5
9+
- AsciiStringLiterals: # 0..5 '"foo"'
10+
- AsciiStringLiteral: '"foo"' # 0..5

crates/solidity/testing/snapshots/cst_output/AsciiStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Errors: # 1 total
1414
───╯
1515
1616
Tree:
17-
- AsciiStringLiterals (Rule): # 0..9 '"foo"bar\n'
18-
- AsciiStringLiteral (Token): '"foo"' # 0..5
19-
- SKIPPED (Token): "bar\n" # 5..9
17+
- AsciiStringLiterals: # 0..9 '"foo"bar\n'
18+
- AsciiStringLiteral: '"foo"' # 0..5
19+
- SKIPPED: "bar\n" # 5..9

crates/solidity/testing/snapshots/cst_output/AssemblyStatement/simple/generated/0.4.11-success.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Source: >
88
Errors: []
99

1010
Tree:
11-
- AssemblyStatement (Rule): # 0..39 'assembly "evmasm" ("memory-safe") {\n\n}\n'
12-
- AssemblyKeyword (Token): "assembly" # 0..8
13-
- AsciiStringLiteral (Token): '"evmasm"' # 9..17
14-
- AssemblyFlagsDeclaration (Rule): # 17..33 ' ("memory-safe")'
15-
- OpenParen (Token): "(" # 18..19
16-
- AssemblyFlags (Rule): # 19..32 '"memory-safe"'
17-
- AsciiStringLiteral (Token): '"memory-safe"' # 19..32
18-
- CloseParen (Token): ")" # 32..33
19-
- YulBlock (Rule): # 33..39 " {\n\n}\n"
20-
- OpenBrace (Token): "{" # 34..35
21-
- CloseBrace (Token): "}" # 37..38
11+
- AssemblyStatement: # 0..39 'assembly "evmasm" ("memory-safe") {\n\n}\n'
12+
- AssemblyKeyword: "assembly" # 0..8
13+
- AsciiStringLiteral: '"evmasm"' # 9..17
14+
- AssemblyFlagsDeclaration: # 17..33 ' ("memory-safe")'
15+
- OpenParen: "(" # 18..19
16+
- AssemblyFlags: # 19..32 '"memory-safe"'
17+
- AsciiStringLiteral: '"memory-safe"' # 19..32
18+
- CloseParen: ")" # 32..33
19+
- YulBlock: # 33..39 " {\n\n}\n"
20+
- OpenBrace: "{" # 34..35
21+
- CloseBrace: "}" # 37..38

crates/solidity/testing/snapshots/cst_output/Block/unchecked/generated/0.4.11-failure.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Errors: # 1 total
1414
───╯
1515
1616
Tree:
17-
- Block (Rule): # 0..24 "{ unchecked { x = 1; } }"
18-
- OpenBrace (Token): "{" # 0..1
19-
- Statements (Rule): # 1..12 " unchecked "
20-
- Statement (Rule): # 1..12 " unchecked "
21-
- ExpressionStatement (Rule): # 1..12 " unchecked "
22-
- Expression (Rule): # 1..11 " unchecked"
23-
- Identifier (Token): "unchecked" # 2..11
24-
- SKIPPED (Token): "{ x = 1; } " # 12..23
25-
- CloseBrace (Token): "}" # 23..24
17+
- Block: # 0..24 "{ unchecked { x = 1; } }"
18+
- OpenBrace: "{" # 0..1
19+
- Statements: # 1..12 " unchecked "
20+
- Statement: # 1..12 " unchecked "
21+
- ExpressionStatement: # 1..12 " unchecked "
22+
- Expression: # 1..11 " unchecked"
23+
- Identifier: "unchecked" # 2..11
24+
- SKIPPED: "{ x = 1; } " # 12..23
25+
- CloseBrace: "}" # 23..24

crates/solidity/testing/snapshots/cst_output/Block/unchecked/generated/0.5.0-failure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Errors: # 1 total
1414
───╯
1515
1616
Tree:
17-
- Block (Rule): # 0..24 "{ unchecked { x = 1; } }"
18-
- OpenBrace (Token): "{" # 0..1
19-
- SKIPPED (Token): "unchecked { x = 1; } " # 2..23
20-
- CloseBrace (Token): "}" # 23..24
17+
- Block: # 0..24 "{ unchecked { x = 1; } }"
18+
- OpenBrace: "{" # 0..1
19+
- SKIPPED: "unchecked { x = 1; } " # 2..23
20+
- CloseBrace: "}" # 23..24

crates/solidity/testing/snapshots/cst_output/Block/unchecked/generated/0.5.3-failure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Errors: # 1 total
1414
───╯
1515
1616
Tree:
17-
- Block (Rule): # 0..24 "{ unchecked { x = 1; } }"
18-
- OpenBrace (Token): "{" # 0..1
19-
- SKIPPED (Token): "unchecked { x = 1; } " # 2..23
20-
- CloseBrace (Token): "}" # 23..24
17+
- Block: # 0..24 "{ unchecked { x = 1; } }"
18+
- OpenBrace: "{" # 0..1
19+
- SKIPPED: "unchecked { x = 1; } " # 2..23
20+
- CloseBrace: "}" # 23..24

crates/solidity/testing/snapshots/cst_output/Block/unchecked/generated/0.6.0-failure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Errors: # 1 total
1414
───╯
1515
1616
Tree:
17-
- Block (Rule): # 0..24 "{ unchecked { x = 1; } }"
18-
- OpenBrace (Token): "{" # 0..1
19-
- SKIPPED (Token): "unchecked { x = 1; } " # 2..23
20-
- CloseBrace (Token): "}" # 23..24
17+
- Block: # 0..24 "{ unchecked { x = 1; } }"
18+
- OpenBrace: "{" # 0..1
19+
- SKIPPED: "unchecked { x = 1; } " # 2..23
20+
- CloseBrace: "}" # 23..24

crates/solidity/testing/snapshots/cst_output/Block/unchecked/generated/0.7.0-failure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Errors: # 1 total
1414
───╯
1515
1616
Tree:
17-
- Block (Rule): # 0..24 "{ unchecked { x = 1; } }"
18-
- OpenBrace (Token): "{" # 0..1
19-
- SKIPPED (Token): "unchecked { x = 1; } " # 2..23
20-
- CloseBrace (Token): "}" # 23..24
17+
- Block: # 0..24 "{ unchecked { x = 1; } }"
18+
- OpenBrace: "{" # 0..1
19+
- SKIPPED: "unchecked { x = 1; } " # 2..23
20+
- CloseBrace: "}" # 23..24

crates/solidity/testing/snapshots/cst_output/Block/unchecked/generated/0.8.0-success.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ Source: >
66
Errors: []
77

88
Tree:
9-
- Block (Rule): # 0..24 "{ unchecked { x = 1; } }"
10-
- OpenBrace (Token): "{" # 0..1
11-
- Statements (Rule): # 1..22 " unchecked { x = 1; }"
12-
- Statement (Rule): # 1..22 " unchecked { x = 1; }"
13-
- UncheckedBlock (Rule): # 1..22 " unchecked { x = 1; }"
14-
- UncheckedKeyword (Token): "unchecked" # 2..11
15-
- Block (Rule): # 11..22 " { x = 1; }"
16-
- OpenBrace (Token): "{" # 12..13
17-
- Statements (Rule): # 13..20 " x = 1;"
18-
- Statement (Rule): # 13..20 " x = 1;"
19-
- ExpressionStatement (Rule): # 13..20 " x = 1;"
20-
- Expression (Rule): # 13..19 " x = 1"
21-
- AssignmentExpression (Rule): # 13..19 " x = 1"
22-
- Expression (Rule): # 13..15 " x"
23-
- Identifier (Token): "x" # 14..15
24-
- Equal (Token): "=" # 16..17
25-
- Expression (Rule): # 17..19 " 1"
26-
- DecimalNumberExpression (Rule): # 17..19 " 1"
27-
- DecimalLiteral (Token): "1" # 18..19
28-
- Semicolon (Token): ";" # 19..20
29-
- CloseBrace (Token): "}" # 21..22
30-
- CloseBrace (Token): "}" # 23..24
9+
- Block: # 0..24 "{ unchecked { x = 1; } }"
10+
- OpenBrace: "{" # 0..1
11+
- Statements: # 1..22 " unchecked { x = 1; }"
12+
- Statement: # 1..22 " unchecked { x = 1; }"
13+
- UncheckedBlock: # 1..22 " unchecked { x = 1; }"
14+
- UncheckedKeyword: "unchecked" # 2..11
15+
- Block: # 11..22 " { x = 1; }"
16+
- OpenBrace: "{" # 12..13
17+
- Statements: # 13..20 " x = 1;"
18+
- Statement: # 13..20 " x = 1;"
19+
- ExpressionStatement: # 13..20 " x = 1;"
20+
- Expression: # 13..19 " x = 1"
21+
- AssignmentExpression: # 13..19 " x = 1"
22+
- Expression: # 13..15 " x"
23+
- Identifier: "x" # 14..15
24+
- Equal: "=" # 16..17
25+
- Expression: # 17..19 " 1"
26+
- DecimalNumberExpression: # 17..19 " 1"
27+
- DecimalLiteral: "1" # 18..19
28+
- Semicolon: ";" # 19..20
29+
- CloseBrace: "}" # 21..22
30+
- CloseBrace: "}" # 23..24

0 commit comments

Comments
 (0)