summaryrefslogtreecommitdiff
path: root/mesonbuild/ast/visitor.py
AgeCommit message (Collapse)Author
2024-04-08parser: revert to single StringNode typeCharles Brunet
this will allow transforming string types in the formater
2024-04-08Add ast visitor for whitespaces and symbolsCharles Brunet
The `AstVisitor` intentionally ignores whitespaces and symbols, as they are not useful for tne interpreter. However, when formatting a build file, we need them. This commit introduces a `FullAstVisitor` that visits every Nodes, including whitespaces and symbols.
2024-01-08ast/printer: fix mypy issuesDylan Baker
Other than one case that I think cannot be actually hit (or it would fail).
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2023-09-11parser: add SymbolNode to preserve operatorsCharles Brunet
2023-09-11parser: add ElseNodeCharles Brunet
2023-09-11parser: use IdNode for foreach varnamesCharles Brunet
2023-09-11parser: use IdNode for function name and assignment nameCharles Brunet
2023-09-11parser: preserve escape chars in stringsCharles Brunet
use separate Node for multiline strings
2023-09-11Add ParenthesizedNodeJCWasmx86
2022-07-03move various unused typing-only imports into type-checking blocksEli Schwartz
2021-07-25ast: Add dummy "support" for fstrings in the ast packageDaniel Mensinger
2020-09-08typing: completely type astDaniel Mensinger
2020-05-23ast: Add AST JSON printerDaniel Mensinger
2020-03-02types: Remove redundant __init__() -> None annotationDaniel Mensinger
2020-03-02types: Annotate the AST visitorsDaniel Mensinger
2019-06-28ast: printer fix index node printingDaniel Mensinger
2019-04-29Fix flake8-bugbear warningsDaniel Mensinger
2019-01-22AST post processingDaniel Mensinger
2019-01-22Basic AST visitor patternDaniel Mensinger