Skip to main content

luaur_ast/methods/
parser_report_ambiguous_call_error.rs

1use crate::records::parser::Parser;
2use luaur_common::macros::luau_noinline::LUAU_NOINLINE;
3
4impl Parser {
5    LUAU_NOINLINE! {
6        pub fn report_ambiguous_call_error(&mut self) {
7            self.report(
8                self.lexer.current().location,
9                format_args!(
10                    "Ambiguous syntax: this looks like an argument list for a function call, but could also be a start of new statement; use ';' to separate statements"
11                ),
12            );
13        }
14    }
15}