Scan the index of 'as' and build the map for all alias
(toks)
| 148 | |
| 149 | |
| 150 | def scan_alias(toks): |
| 151 | """Scan the index of 'as' and build the map for all alias""" |
| 152 | as_idxs = [idx for idx, tok in enumerate(toks) if tok == 'as'] |
| 153 | alias = {} |
| 154 | for idx in as_idxs: |
| 155 | alias[toks[idx+1]] = toks[idx-1] |
| 156 | return alias |
| 157 | |
| 158 | |
| 159 | def get_tables_with_alias(schema, toks): |
no outgoing calls
no test coverage detected