| 1716 | } |
| 1717 | |
| 1718 | asCScriptNode *asCParser::ParseStringConstant() |
| 1719 | { |
| 1720 | asCScriptNode *node = CreateNode(snConstant); |
| 1721 | if( node == 0 ) return 0; |
| 1722 | |
| 1723 | sToken t; |
| 1724 | GetToken(&t); |
| 1725 | if( t.type != ttStringConstant && t.type != ttMultilineStringConstant && t.type != ttHeredocStringConstant ) |
| 1726 | { |
| 1727 | Error(TXT_EXPECTED_STRING, &t); |
| 1728 | Error(InsteadFound(t), &t); |
| 1729 | return node; |
| 1730 | } |
| 1731 | |
| 1732 | node->SetToken(&t); |
| 1733 | node->UpdateSourcePos(t.pos, t.length); |
| 1734 | |
| 1735 | return node; |
| 1736 | } |
| 1737 | |
| 1738 | // BNF:12: FUNCCALL ::= SCOPE IDENTIFIER ARGLIST |
| 1739 | asCScriptNode *asCParser::ParseFunctionCall() |
nothing calls this directly
no test coverage detected