MCPcopy Create free account
hub / github.com/Siv3D/OpenSiv3D / ParseStringConstant

Method ParseStringConstant

Siv3D/src/ThirdParty/angelscript/as_parser.cpp:1718–1736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716}
1717
1718asCScriptNode *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
1739asCScriptNode *asCParser::ParseFunctionCall()

Callers

nothing calls this directly

Calls 3

SetTokenMethod · 0.80
UpdateSourcePosMethod · 0.80
ErrorFunction · 0.50

Tested by

no test coverage detected