160 Private method to generate an AST for our source. |
160 Private method to generate an AST for our source. |
161 |
161 |
162 @return generated AST |
162 @return generated AST |
163 @rtype ast.Module |
163 @rtype ast.Module |
164 """ |
164 """ |
165 source = "".join(self.__source) |
165 return ast.parse("".join(self.__source), self.__filename) |
166 return compile(source, self.__filename, 'exec', ast.PyCF_ONLY_AST) |
|
167 |
166 |
168 def run(self): |
167 def run(self): |
169 """ |
168 """ |
170 Public method to check the given source against annotation issues. |
169 Public method to check the given source against annotation issues. |
171 """ |
170 """ |