From a245a27ad33ba2ffae4aa731b34af150aba07627 Mon Sep 17 00:00:00 2001 From: ryuukk Date: Sun, 5 Feb 2023 02:15:31 +0100 Subject: [PATCH] document the third pass --- dsymbol/src/dsymbol/conversion/third.d | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dsymbol/src/dsymbol/conversion/third.d b/dsymbol/src/dsymbol/conversion/third.d index 79fe7b0..83fa930 100644 --- a/dsymbol/src/dsymbol/conversion/third.d +++ b/dsymbol/src/dsymbol/conversion/third.d @@ -27,12 +27,19 @@ import dsymbol.deferred; import containers.hashset; + +/** + * Used to resolve remaining symbols when trying to parse modules that depend on each other (public imports) + */ void thirdPass(Scope* mscope, ref ModuleCache cache, size_t cursorPosition) { auto desired = mscope.getScopeByCursor(cursorPosition); tryResolve(desired, cache); } +/** + * Used to resolve missing symbols within a scope + */ void tryResolve(Scope* sc, ref ModuleCache cache) { if (sc is null) return;