mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
Fix compiler bug: user functions should be able to have the same name as module function parameter names
This commit is contained in:
parent
7a40423b7d
commit
e7b0dffc4c
7 changed files with 54 additions and 5 deletions
|
|
@ -1998,6 +1998,16 @@ int SmartParser::getToken( CompilerContext& ctx, Token& token, Expression* pexpr
|
|||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a token, but bypass the conversions in SmartParser::getToken
|
||||
* Primarily used when getting an identifier that may be the same as
|
||||
* a userfunc name.
|
||||
*/
|
||||
int SmartParser::getTokenWithoutConversions( CompilerContext& ctx, Token& token )
|
||||
{
|
||||
return Parser::getToken( ctx, token );
|
||||
}
|
||||
|
||||
bool SmartParser::callingMethod( CompilerContext& ctx )
|
||||
{
|
||||
// if we have something like x.foo(), change to call-method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue