|
|
|
|
@ -470,30 +470,30 @@ export function store_invalid_subscription_module(node) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `$track` must only be used once within the same block statement
|
|
|
|
|
* `$inspect.trace` must only be used once within the same block statement
|
|
|
|
|
* @param {null | number | NodeLike} node
|
|
|
|
|
* @returns {never}
|
|
|
|
|
*/
|
|
|
|
|
export function trace_rune_duplicate(node) {
|
|
|
|
|
e(node, "trace_rune_duplicate", "`$track` must only be used once within the same block statement");
|
|
|
|
|
e(node, "trace_rune_duplicate", "`$inspect.trace` must only be used once within the same block statement");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `$track` requires a string argument for the trace name
|
|
|
|
|
* `$inspect.trace` requires a string argument for the trace name
|
|
|
|
|
* @param {null | number | NodeLike} node
|
|
|
|
|
* @returns {never}
|
|
|
|
|
*/
|
|
|
|
|
export function trace_rune_invalid_argument(node) {
|
|
|
|
|
e(node, "trace_rune_invalid_argument", "`$track` requires a string argument for the trace name");
|
|
|
|
|
e(node, "trace_rune_invalid_argument", "`$inspect.trace` requires a string argument for the trace name");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `$track` must be placed directly inside a block statement
|
|
|
|
|
* `$inspect.trace` must be placed directly inside a block statement
|
|
|
|
|
* @param {null | number | NodeLike} node
|
|
|
|
|
* @returns {never}
|
|
|
|
|
*/
|
|
|
|
|
export function trace_rune_invalid_location(node) {
|
|
|
|
|
e(node, "trace_rune_invalid_location", "`$track` must be placed directly inside a block statement");
|
|
|
|
|
e(node, "trace_rune_invalid_location", "`$inspect.trace` must be placed directly inside a block statement");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|