# \#ast

**URL:** https://forums.swift.org/tag/ast/622.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [PLUGIN\_SEARCH\_OPTION in swiftmodule make it not cacheable](https://forums.swift.org/t/plugin-search-option-in-swiftmodule-make-it-not-cacheable/78895)

<div class="topic-metadata">

**Author:** [@wizzardchao](https://forums.swift.org/u/wizzardchao)\
**Replies:** 5\
**Last updated:** [September 29, 2026, 5:59pm UTC](https://forums.swift.org/t/plugin-search-option-in-swiftmodule-make-it-not-cacheable/78895 "2026-09-29T17:59:20Z")

</div>

As swift 6.x starts to use different swiftmodule for TypeSystemSwiftTypeRefForExpression when constructing swift ast context, we are required to provide all our swiftmodules to linker with -add-ast-path . with --serializ…

---

## [How to distinguish explicit assignment vs 'sugared' capture list item syntax in the AST?](https://forums.swift.org/t/how-to-distinguish-explicit-assignment-vs-sugared-capture-list-item-syntax-in-the-ast/83164)

<div class="topic-metadata">

**Author:** [@jamieQ](https://forums.swift.org/u/jamieQ)\
**Replies:** 2\
**Last updated:** [November 12, 2025, 8:35pm UTC](https://forums.swift.org/t/how-to-distinguish-explicit-assignment-vs-sugared-capture-list-item-syntax-in-the-ast/83164 "2025-11-12T20:35:11Z")

</div>

given the current implementation in Sema, what is the best way to differentiate the capture list items in the following two cases from their representation in the AST? let x = 0 \_ = { \[x\] in \_ = x } vs let x = 0 \_ = {…

---

## [Get type-checked AST](https://forums.swift.org/t/get-type-checked-ast/66126)

<div class="topic-metadata">

**Author:** [@pitt](https://forums.swift.org/u/pitt)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 1:03pm UTC](https://forums.swift.org/t/get-type-checked-ast/66126 "2023-07-13T13:03:10Z")

</div>

Hello ! I'm exploring the possibilities to write a SPM plugin that would inspect code architecture. I think what I'm looking for is a mean to get and walk through a type-checked AST. I'm not sure it's feasible as a plu…

---

## [Mangling: looking up declarations by their mangled name](https://forums.swift.org/t/mangling-looking-up-declarations-by-their-mangled-name/54193)

<div class="topic-metadata">

**Author:** [@broadway\_lamb](https://forums.swift.org/u/broadway_lamb)\
**Replies:** 5\
**Last updated:** [February 17, 2022, 5:23pm UTC](https://forums.swift.org/t/mangling-looking-up-declarations-by-their-mangled-name/54193 "2022-02-17T17:23:14Z")

</div>

tl;dr: is there any existing facility for looking up function declarations by their name, label list and type, and if not, what would be the best way to implement it and what to look out for? I'm working on extending…
