Skip to content

Commit 797072b

Browse files
author
colinmcneil
committed
Update top-level ranges to use schema
1 parent 17f44d1 commit 797072b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prompts/pylint/5-6-top-level-ranges.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ An example parsed file:
118118
```
119119
to get the ranges of each top level node into capturing groups.
120120
Write the ranges to `/thread/ranges.sql` in the form of sql
121-
`INSERT INTO RANGES (ROW, END_ROW, COLUMN, END_COLUMN, PATH) values (...)`
121+
`INSERT INTO RANGES (LINE, END_LINE, COLUMN, END_COLUMN, PATH) values (...)`
122122

123123
Example output of script would be the creation of file `/thread/ranges.sql` with contents:
124124

125125
```sql
126-
INSERT INTO RANGES (ROW, COLUMN, END_ROW, END_COLUMN, NODE_TYPE, PATH) values (0,0,0,21,'comment', 'main.py')
127-
INSERT INTO RANGES (ROW, COLUMN, END_ROW, END_COLUMN, NODE_TYPE, PATH) values (2,0,2,37,'import_from_statement', 'main.py')
128-
INSERT INTO RANGES (ROW, COLUMN, END_ROW, END_COLUMN, NODE_TYPE, PATH) values (4,0,5,17,'if_statement', 'main.py')
126+
INSERT INTO RANGES (LINE, COLUMN, END_LINE, END_COLUMN, NODE_TYPE, PATH) values (0,0,0,21,'comment', 'main.py')
127+
INSERT INTO RANGES (LINE, COLUMN, END_LINE, END_COLUMN, NODE_TYPE, PATH) values (2,0,2,37,'import_from_statement', 'main.py')
128+
INSERT INTO RANGES (LINE, COLUMN, END_LINE, END_COLUMN, NODE_TYPE, PATH) values (4,0,5,17,'if_statement', 'main.py')
129129
```
130130

131131
5. Execute the code in the javascript sandbox.

0 commit comments

Comments
 (0)