384 lines
7.6 KiB
JSON
384 lines
7.6 KiB
JSON
{
|
|
"cases": [
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 4,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 0,
|
|
"text": "comptime y = x"
|
|
},
|
|
{
|
|
"end": 10,
|
|
"file": "baseline.mojo",
|
|
"line": 4,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "y",
|
|
"start": 9,
|
|
"text": "comptime y = x"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 9,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "v",
|
|
"start": 0,
|
|
"text": "var foo = 1"
|
|
},
|
|
{
|
|
"end": 7,
|
|
"file": "baseline.mojo",
|
|
"line": 9,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "foo",
|
|
"start": 4,
|
|
"text": "var foo = 1"
|
|
},
|
|
{
|
|
"dialect": {
|
|
"older": [
|
|
"alias"
|
|
]
|
|
},
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 12,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "a",
|
|
"start": 0,
|
|
"text": "alias Bar = Int"
|
|
},
|
|
{
|
|
"dialect": {
|
|
"older": [
|
|
"alias"
|
|
]
|
|
},
|
|
"end": 9,
|
|
"file": "baseline.mojo",
|
|
"line": 12,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "Bar",
|
|
"start": 6,
|
|
"text": "alias Bar = Int"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 17,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "v",
|
|
"start": 0,
|
|
"text": "var c, d = (3, 4)"
|
|
},
|
|
{
|
|
"end": 5,
|
|
"file": "baseline.mojo",
|
|
"line": 17,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 4,
|
|
"text": "var c, d = (3, 4)"
|
|
},
|
|
{
|
|
"end": 8,
|
|
"file": "baseline.mojo",
|
|
"line": 17,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "d",
|
|
"start": 7,
|
|
"text": "var c, d = (3, 4)"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 26,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"source.mojo"
|
|
],
|
|
"slice": "e",
|
|
"start": 0,
|
|
"text": "e, f = (5, 6)"
|
|
},
|
|
{
|
|
"end": 4,
|
|
"file": "baseline.mojo",
|
|
"line": 26,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"source.mojo"
|
|
],
|
|
"slice": "f",
|
|
"start": 3,
|
|
"text": "e, f = (5, 6)"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 29,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"source.mojo"
|
|
],
|
|
"slice": "(",
|
|
"start": 0,
|
|
"text": "(g, h) = (7, 8)"
|
|
},
|
|
{
|
|
"end": 4,
|
|
"file": "baseline.mojo",
|
|
"line": 29,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"source.mojo"
|
|
],
|
|
"slice": " ",
|
|
"start": 3,
|
|
"text": "(g, h) = (7, 8)"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 34,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "i",
|
|
"start": 0,
|
|
"text": "if x > 3:"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 36,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "f",
|
|
"start": 0,
|
|
"text": "for x in range(10):"
|
|
},
|
|
{
|
|
"end": 8,
|
|
"file": "baseline.mojo",
|
|
"line": 36,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "in",
|
|
"start": 6,
|
|
"text": "for x in range(10):"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "baseline.mojo",
|
|
"line": 39,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "a",
|
|
"start": 0,
|
|
"text": "assert x > 0"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 4,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 0,
|
|
"text": "comptime if x > 3:"
|
|
},
|
|
{
|
|
"end": 11,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 4,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "if",
|
|
"start": 9,
|
|
"text": "comptime if x > 3:"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 9,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 0,
|
|
"text": "comptime for x in range(10):"
|
|
},
|
|
{
|
|
"end": 12,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 9,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "for",
|
|
"start": 9,
|
|
"text": "comptime for x in range(10):"
|
|
},
|
|
{
|
|
"end": 17,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 9,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "in",
|
|
"start": 15,
|
|
"text": "comptime for x in range(10):"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 15,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 0,
|
|
"text": "comptime assert x > 0"
|
|
},
|
|
{
|
|
"end": 15,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 15,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"keyword.control.flow.python"
|
|
],
|
|
"slice": "assert",
|
|
"start": 9,
|
|
"text": "comptime assert x > 0"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 20,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 0,
|
|
"text": "comptime a, b = func()"
|
|
},
|
|
{
|
|
"end": 10,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 20,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "a",
|
|
"start": 9,
|
|
"text": "comptime a, b = func()"
|
|
},
|
|
{
|
|
"end": 13,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 20,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "b",
|
|
"start": 12,
|
|
"text": "comptime a, b = func()"
|
|
},
|
|
{
|
|
"end": 1,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 26,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"storage.modifier.declaration.python"
|
|
],
|
|
"slice": "c",
|
|
"start": 0,
|
|
"text": "comptime (a, b) = func()"
|
|
},
|
|
{
|
|
"end": 11,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 26,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "a",
|
|
"start": 10,
|
|
"text": "comptime (a, b) = func()"
|
|
},
|
|
{
|
|
"end": 14,
|
|
"file": "comptime_statements.mojo",
|
|
"line": 26,
|
|
"notScopes": [],
|
|
"scopes": [
|
|
"variable.other.python"
|
|
],
|
|
"slice": "b",
|
|
"start": 13,
|
|
"text": "comptime (a, b) = func()"
|
|
}
|
|
],
|
|
"processor": "syntax",
|
|
"provenance": {
|
|
"commit": "48cdeac4f6b542e0b50666a5725fdfadf6188836",
|
|
"license": "MIT",
|
|
"path": "tests/*.mojo",
|
|
"repo": "modular/mojo-syntax",
|
|
"source": "mojo-syntax",
|
|
"zipSha256": "2c6ec7c70921e361e386c64f6d01c1b01b1711012da7bb084800f7d107acbd9d"
|
|
}
|
|
}
|