| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2023-09-11 | raw printer | Charles Brunet | 1 | -0/+219 | |
| this printer preserves all whitespaces and comments in original meson.build file. It will be useful for rewrite and potential auto-formatter | |||||
| 2023-09-11 | parser: use IdNode for foreach varnames | Charles Brunet | 1 | -2/+2 | |
| 2023-09-11 | parser: use IdNode for function name and assignment name | Charles Brunet | 1 | -8/+8 | |
| 2023-09-11 | parser: preserve escape chars in strings | Charles Brunet | 1 | -1/+11 | |
| use separate Node for multiline strings | |||||
| 2023-08-11 | treewide: automatic rewriting of all comment-style type annotations | Eli Schwartz | 1 | -6/+6 | |
| Performed using https://github.com/ilevkivskyi/com2ann This has no actual effect on the codebase as type checkers (still) support both and negligible effect on runtime performance since __future__ annotations ameliorates that. Technically, the bytecode would be bigger for non function-local annotations, of which we have many either way. So if it doesn't really matter, why do a large-scale refactor? Simple: because people keep wanting to, but it's getting nickle-and-dimed. If we're going to do this we might as well do it consistently in one shot, using tooling that guarantees repeatability and correctness. Repeat with: ``` com2ann mesonbuild/ ``` | |||||
| 2023-02-28 | refactor a few subsystem-relative imports that imported the wrong location | Eli Schwartz | 1 | -1/+1 | |
| Inside of mesonbuild.ast.* we can and should import from .foobar, rather than importing from .__init__'s re-exported version of that object. Failing to do so results in an extremely brittle codebase where simply changing the order of lines in __init__.py can result in ImportError. | |||||
| 2023-02-01 | treewide: add future annotations import | Eli Schwartz | 1 | -0/+1 | |
| 2022-10-03 | pylint: enable unnecessary-comprehension | Dylan Baker | 1 | -2/+1 | |
| 2022-09-07 | Fixed string escaping in AstPrinter | Volker Weißmann | 1 | -1/+5 | |
| 2022-05-24 | ast: cmake: Generate line numbers while printing the AST for better debugging | Daniel Mensinger | 1 | -1/+30 | |
| 2021-07-25 | ast: Add dummy "support" for fstrings in the ast package | Daniel Mensinger | 1 | -0/+7 | |
| 2021-06-16 | Fix assert(not true) raising backtrace | Xavier Claessens | 1 | -1/+1 | |
| When no message is provided to assert(), it uses the ast printer to show the condition that failed. In this case the 'not' is the first string appended to the result, self.result[-1] would raise range error. | |||||
| 2020-05-23 | ast: Add AST JSON printer | Daniel Mensinger | 1 | -1/+159 | |
| 2020-03-02 | types: Remove redundant __init__() -> None annotation | Daniel Mensinger | 1 | -1/+1 | |
| 2020-03-02 | types: Annotate the AST visitors | Daniel Mensinger | 1 | -37/+34 | |
| 2020-03-02 | types: Annotate mparser.py | Daniel Mensinger | 1 | -5/+2 | |
| This also fixes that the keys in ArgumentNode.kwargs are all of the type BaseNode now. Before this commit, it was possible that both strings and Nodes where used as keys. | |||||
| 2019-12-10 | assert(): Make message argument optional | Xavier Claessens | 1 | -2/+5 | |
| 2019-06-28 | ast: printer fix index node printing | Daniel Mensinger | 1 | -1/+2 | |
| 2019-04-25 | ast/printer: remove useless ternary | Dylan Baker | 1 | -1/+1 | |
| The ternary returns True or False from an expression that returns True or False: i.e. True if bool(value) else False. | |||||
| 2019-01-24 | Fixed style issues | Daniel Mensinger | 1 | -14/+14 | |
| 2019-01-22 | Can now rewrite files | Daniel Mensinger | 1 | -2/+14 | |
| 2019-01-22 | AST post processing | Daniel Mensinger | 1 | -64/+45 | |
| 2019-01-22 | Added Ast printer | Daniel Mensinger | 1 | -2/+190 | |
| 2019-01-22 | Basic AST visitor pattern | Daniel Mensinger | 1 | -0/+22 | |
