feat(markup): bracket-marked calls with pre_modifiers

Stabilize `mod… [callee] args` (modifiers → name=True) alongside link-index
disambiguation; expand in interp/bytecode, show in view, and document lib/view
code-as-docs waves before stdlib rewrite.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 11:33:11 +08:00
1 parent 5058f5ddcf
commit 0e0655b316
17 files changed
+676 -56

No files matched your search

+3 -1
View File
@@ -434,7 +434,9 @@ impl<'a> FnCompiler<'a> {
}
fn compile_call(&mut self, call: &CallExpr, as_stmt: bool) -> Result<()> {
let mut call = call.clone();
let mut call = call
.with_modifiers_expanded()
.map_err(|m| self.err(m))?;
if let Some(path) = &call.path {
// Bare dotted callee `a.b`: if `a` is a local variable, it is a method
// receiver (Python-style unified namespace); otherwise it's a library path.