Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-03-07 | merge various TYPE_CHECKING blocks into one | Eli Schwartz | 1 | -7/+7 | |
A bunch of files have several T.TYPE_CHECKING blocks that each do some things which could just as well be done once, with a single `if` statement. Make them do so. | |||||
2022-02-14 | FeatureNew: add mypy type annotations for subproject arg | Eli Schwartz | 1 | -2/+4 | |
Use a derived type when passing `subproject` around, so that mypy knows it's actually a SubProject, not a str. This means that passing anything other than a handle to the interpreter state's subproject attribute becomes a type violation, specifically when the order of the *four* different str arguments is typoed. | |||||
2021-10-27 | fix various flake8 whitespace errors | Eli Schwartz | 1 | -0/+1 | |
2021-10-10 | Fix typos discovered by codespell | Christian Clauss | 1 | -1/+1 | |
2021-10-06 | interpreter: Move RangeHolder out of interpreterbase to interpreter | Daniel Mensinger | 1 | -23/+0 | |
2021-10-06 | interpreter: Holderify arrays and dicts | Daniel Mensinger | 1 | -7/+24 | |
This is the final refactoring for extracting the bultin object logic out of Interpreterbase. I decided to do both arrays and dicts in one go since splitting it would have been a lot more confusing. | |||||
2021-10-04 | fix extra whitespace | Eli Schwartz | 1 | -1/+0 | |
discovered via flake8 --select E303 | |||||
2021-09-25 | Remove helpers.check_stringlist() | Daniel Mensinger | 1 | -3/+9 | |
2021-09-25 | interpreter: Introduce StringHolder | Daniel Mensinger | 1 | -2/+2 | |
Another commit in my quest to rid InterpreterBase from all higher level object processing logic. Additionally, there is a a logic change here, since `str.join` now uses varargs and can now accept more than one argument (and supports list flattening). | |||||
2021-09-01 | interpreter: Introduce BooleanHolder for the bool primitive | Daniel Mensinger | 1 | -2/+2 | |
2021-08-31 | interpreter: Add IntegerHolder | Daniel Mensinger | 1 | -0/+4 | |
2021-08-31 | interpreter: Introduce operators support for InterpreterObjects | Daniel Mensinger | 1 | -4/+79 | |
2021-08-16 | interperterbase: help type checkers do better type deduction | Dylan Baker | 1 | -1/+5 | |
This assert causes several type checkers (both mypy and pyright) to force `obj` to be a base `HoldableObject` instead of the specialized object. Since the check itself may still be valuable as we don't have fully type annotation coverage it's simply been removed when type checking to aid in type specialization. | |||||
2021-07-21 | Fix meson.version().version_compare() regression in subproject | Xavier Claessens | 1 | -1/+1 | |
2021-06-26 | refactor: Refactor BothLibraries logic | Daniel Mensinger | 1 | -1/+3 | |
This commit introduces a new type of `HoldableObject`: The `SecondLevelHolder`. The primary purpose of this class is to handle cases where two (or more) `HoldableObject`s are stored at the same time (with one default object). The best (and currently only) example here is the `BothLibraries` class. | |||||
2021-06-21 | fix: Ensure that build targets have all methods from ExternalProgram | Daniel Mensinger | 1 | -1/+1 | |
As a side-effect from #8885 `find_program()` returns now `Executable` objects when `meson.override_find_program` is called with an executable target. To resolve this conflict the missing methods from `ExternalProgram` are added to `BuildTarget`. | |||||
2021-06-18 | holders: Introduce HoldableObject | Daniel Mensinger | 1 | -11/+23 | |
2021-06-18 | interpreter: Meson does not have floats --> remove them | Daniel Mensinger | 1 | -2/+2 | |
2021-06-18 | interpreter: Add a new MesonInterpreterObject for non-elementary objects | Daniel Mensinger | 1 | -2/+5 | |
2021-06-18 | interpreter: Refactor interpreter.compiler to use ObjectHolder | Daniel Mensinger | 1 | -2/+2 | |
2021-06-18 | interpreter: Refactor ObjectHolder to extend InterpreterObject | Daniel Mensinger | 1 | -10/+10 | |
2021-06-11 | interpreter: Split base objects and helpers from interpreterbase.py | Daniel Mensinger | 1 | -0/+79 | |