diff --git a/internal/cbm/lang_specs.c b/internal/cbm/lang_specs.c index 04f994413..62f533082 100644 --- a/internal/cbm/lang_specs.c +++ b/internal/cbm/lang_specs.c @@ -1699,8 +1699,11 @@ static const char *objectscript_udl_func_types[] = {"method", "classmethod", "qu static const char *objectscript_udl_class_types[] = {"class_definition", NULL}; static const char *objectscript_udl_field_types[] = { "property", "parameter", "index", "trigger", "xdata", "storage", "foreignkey", NULL}; -static const char *objectscript_udl_call_types[] = {"class_method_call", "method_call", - "relative_dot_method", "macro", NULL}; +/* Instance calls (`Do obj.M()`) have no call node of their own: the grammar + * hides method_call, leaving do_parameter/job_argument with an oref_method + * child. cbm_is_call_site() matches those via cbm_objectscript_is_instance_call. */ +static const char *objectscript_udl_call_types[] = {"class_method_call", "relative_dot_method", + "macro", NULL}; static const char *objectscript_udl_module_types[] = {"source_file", NULL}; /* Branching nodes for cyclomatic complexity (verified against grammar node-types) */ static const char *objectscript_udl_branch_types[] = { diff --git a/tests/repro/repro_call_node_behaviors.c b/tests/repro/repro_call_node_behaviors.c index 2a007edca..cbb4c911e 100644 --- a/tests/repro/repro_call_node_behaviors.c +++ b/tests/repro/repro_call_node_behaviors.c @@ -712,7 +712,7 @@ TEST(repro_call_node_behavior_objectscript_udl_method_call) { CBM_LANG_OBJECTSCRIPT_UDL, "Behavior.cls", OBJECTSCRIPT_METHOD_SOURCE, - "method_call", + "do_parameter", "a typed ObjectScript receiver resolves one exact instance-method call without " "consuming its argument usage"}; return run_objectscript_call_behavior(&test_case, "repro.Behavior.Sample.Behavior.run", diff --git a/tests/repro/repro_call_node_manifest.c b/tests/repro/repro_call_node_manifest.c index fc2a8b14c..16c8c6186 100644 --- a/tests/repro/repro_call_node_manifest.c +++ b/tests/repro/repro_call_node_manifest.c @@ -59,9 +59,9 @@ typedef struct { } CallNodeManifestEntry; enum { - EXPECTED_HISTORICAL_CALL_NODE_TOTAL = 226, - EXPECTED_ACTIVE_PRIMARY_TOTAL = 196, - EXPECTED_DIRECT_CALLS = 160, + EXPECTED_HISTORICAL_CALL_NODE_TOTAL = 225, + EXPECTED_ACTIVE_PRIMARY_TOTAL = 195, + EXPECTED_DIRECT_CALLS = 159, EXPECTED_CONSTRUCTOR_CALLS = 22, EXPECTED_OPERATOR_CALLS = 12, EXPECTED_IMPLICIT_CALLS = 2, @@ -70,7 +70,7 @@ enum { EXPECTED_CALLEE_WRAPPERS = 8, EXPECTED_ARGUMENT_WRAPPERS = 1, EXPECTED_CONTROL_OR_DOCUMENT_NONCALLS = 6, - EXPECTED_PRIMARY_OWNERS = 196, + EXPECTED_PRIMARY_OWNERS = 195, EXPECTED_SYNTHETIC_OWNERS = 10, EXPECTED_NO_CALL_EDGE_OWNERS = 20, EXPECTED_PRIMARY_OPERATOR_CALLS = 4, @@ -310,7 +310,6 @@ static const CallNodeManifestEntry CALL_NODE_MANIFEST[] = { ENTRY(CBM_LANG_MOJO, "call", DIRECT_CALL, PRIMARY_EXTRACTOR, true, true), ENTRY(CBM_LANG_OBJECTSCRIPT_UDL, "class_method_call", DIRECT_CALL, PRIMARY_EXTRACTOR, true, true), - ENTRY(CBM_LANG_OBJECTSCRIPT_UDL, "method_call", DIRECT_CALL, PRIMARY_EXTRACTOR, true, true), ENTRY(CBM_LANG_OBJECTSCRIPT_UDL, "relative_dot_method", DIRECT_CALL, PRIMARY_EXTRACTOR, true, true), ENTRY(CBM_LANG_OBJECTSCRIPT_UDL, "macro", DIRECT_CALL, PRIMARY_EXTRACTOR, true, true),