mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Python: Update parser test output
It seems that with a newer version of tree-sitter, we no longer parse the (not actually valid!) syntax `Spam[**P2]` as if the `**` is an exponentiation operation (with a missing left operand).
This commit is contained in:
@@ -338,16 +338,9 @@ Module: [1, 0] - [23, 0]
|
||||
variable: Variable('Spam', None)
|
||||
ctx: Load
|
||||
index:
|
||||
BinOp: [20, 36] - [20, 40]
|
||||
left:
|
||||
Name: [20, 36] - [20, 36]
|
||||
variable: Variable('', None)
|
||||
ctx: Load
|
||||
op: Pow
|
||||
right:
|
||||
Name: [20, 38] - [20, 40]
|
||||
variable: Variable('P2', None)
|
||||
ctx: Load
|
||||
Name: [20, 38] - [20, 40]
|
||||
variable: Variable('P2', None)
|
||||
ctx: Load
|
||||
ctx: Load
|
||||
TypeAlias: [21, 0] - [21, 41]
|
||||
name:
|
||||
|
||||
Reference in New Issue
Block a user