MCPcopy Create free account
hub / github.com/OpenMW/openmw / append

Method append

components/compiler/exprparser.cpp:614–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 }
613
614 char ExprParser::append(std::vector<Interpreter::Type_Code>& code)
615 {
616 if (mOperands.empty() && mOperators.empty())
617 {
618 getErrorHandler().error("Missing expression", mTokenLoc);
619 return 'l';
620 }
621
622 if (mNextOperand || mOperands.empty())
623 {
624 getErrorHandler().error("Syntax error in expression", mTokenLoc);
625 return 'l';
626 }
627
628 while (!mOperators.empty())
629 pop();
630
631 std::copy(mCode.begin(), mCode.end(), std::back_inserter(code));
632
633 assert(mOperands.size() == 1);
634 return mOperands[0];
635 }
636
637 int ExprParser::parseArguments(const std::string& arguments, Scanner& scanner,
638 std::vector<Interpreter::Type_Code>& code, int ignoreKeyword, bool expectNames)

Callers 13

parseIfBodyMethod · 0.45
parseWhileBodyMethod · 0.45
parseExpressionMethod · 0.45
parseKeywordMethod · 0.45
parseArgumentsMethod · 0.45
addGameFileMethod · 0.45
appendChildMethod · 0.45
addFileMethod · 0.45
gameFilesMethod · 0.45
setNonUserContentMethod · 0.45
validatePathsMethod · 0.45

Calls 7

popFunction · 0.85
copyFunction · 0.85
emptyMethod · 0.45
errorMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected