Browse Source

Namespaces in AerScript do not support aliases.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
d72774f0f4
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      engine/compiler.c

+ 0
- 17
engine/compiler.c View File

@ -2402,23 +2402,6 @@ static sxi32 PH7_CompileUsing(ph7_gen_state *pGen) {
break;
}
}
if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_KEYWORD) && PH7_KEYWORD_AS == SX_PTR_TO_INT(pGen->pIn->pUserData)) {
pGen->pIn++; /* Jump the 'as' keyword */
/* Compile one or more aliasses */
for(;;) {
if(pGen->pIn >= pGen->pEnd) {
break;
}
while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (PH7_TK_NSSEP | PH7_TK_ID))) {
pGen->pIn++;
}
if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_COMMA/*','*/)) {
pGen->pIn++; /* Jump the comma and process the next alias */
} else {
break;
}
}
}
if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_SEMI/*';'*/) == 0) {
/* Unexpected token */
PH7_GenCompileError(&(*pGen), E_ERROR, nLine, "using statement: Unexpected token '%z',expecting ';'",

Loading…
Cancel
Save