Parse the source code into AST. Returns ------- res : doc.AST The AST of source code.
(self)
| 90 | self.full_source = "".join(src) |
| 91 | |
| 92 | def as_ast(self) -> doc.AST: |
| 93 | """Parse the source code into AST. |
| 94 | |
| 95 | Returns |
| 96 | ------- |
| 97 | res : doc.AST |
| 98 | The AST of source code. |
| 99 | """ |
| 100 | return doc.parse(self.source) |
| 101 | |
| 102 | |
| 103 | _getfile = inspect.getfile # pylint: disable=invalid-name |