Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 94731101 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

PARSER: Drop the callable type in the declaration before getting the name

parent 9189b055
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!25Draft: New Vivy module spec
......@@ -40,9 +40,6 @@ while (tokenListIsNotEmpty(tokens)) {
firstToken.toString());
}
/* DEBUG */
std::cerr << firstToken.toString() << "\n";
/*
** Parse attribute. We need to take all the tokens in another vector and
** construct the attribute after the next object is completed
......@@ -117,6 +114,7 @@ while (tokenListIsNotEmpty(tokens)) {
tokensForInnerInstructions.erase(std::begin(tokensForInnerInstructions));
tokensForInnerInstructions.pop_back();
getInnerTokenOpt(tokenListPop(&tokensForSignature)).assertTypeSimple(TOKEN_FUNCTION);
Token name = getInnerTokenOpt(tokenListPop(&tokensForSignature));
name.assertType(Token::Type::QNAME);
......@@ -145,6 +143,7 @@ while (tokenListIsNotEmpty(tokens)) {
tokensForInnerInstructions.erase(std::begin(tokensForInnerInstructions));
tokensForInnerInstructions.pop_back();
getInnerTokenOpt(tokenListPop(&tokensForSignature)).assertTypeSimple(TOKEN_JOB);
Token name = getInnerTokenOpt(tokenListPop(&tokensForSignature));
name.assertType(Token::Type::QNAME);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter