Extract include directives from raw source without fetching or expanding them.
This uses the same scanner and directive parser as resolveIncludes, so it
reports only directives that the include expansion pass would recognize.
This is a source-phase API. It intentionally does not evaluate later syntax
such as comments, expressions, or iftags. Wikidot expands includes before
those phases, so an include inside a later comment block is still reported,
while a token that only becomes [[include ...]] after comment/expression/
iftags processing is not reported.
The result is not a complete transitive dependency graph. Nested includes
only become visible after fetching and expanding the current layer; use
resolveIncludesWithTrace when the caller needs observed dependency edges
across iterative expansion.
Extract include directives from raw source without fetching or expanding them.
This uses the same scanner and directive parser as
resolveIncludes, so it reports only directives that the include expansion pass would recognize.This is a source-phase API. It intentionally does not evaluate later syntax such as comments, expressions, or iftags. Wikidot expands includes before those phases, so an include inside a later comment block is still reported, while a token that only becomes
[[include ...]]after comment/expression/ iftags processing is not reported.The result is not a complete transitive dependency graph. Nested includes only become visible after fetching and expanding the current layer; use
resolveIncludesWithTracewhen the caller needs observed dependency edges across iterative expansion.