Mercurial > cpython-lru_cache-weakref
diff Parser/node.c @ 36786:57322cb2ca11 legacy-trunk
Patch #1440601: Add col_offset attribute to AST nodes.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 01 Mar 2006 22:49:05 +0000 |
| parents | 3444005b6527 |
| children | 6ae4adefc573 |
line wrap: on
line diff
--- a/Parser/node.c Wed Mar 01 22:45:36 2006 +0000 +++ b/Parser/node.c Wed Mar 01 22:49:05 2006 +0000 @@ -76,7 +76,7 @@ int -PyNode_AddChild(register node *n1, int type, char *str, int lineno) +PyNode_AddChild(register node *n1, int type, char *str, int lineno, int col_offset) { const int nch = n1->n_nchildren; int current_capacity; @@ -103,6 +103,7 @@ n->n_type = type; n->n_str = str; n->n_lineno = lineno; + n->n_col_offset = col_offset; n->n_nchildren = 0; n->n_child = NULL; return 0;
