MCPcopy Create free account
hub / github.com/anjo76/angelscript / ParseStringConstant

Method ParseStringConstant

sdk/angelscript/source/as_parser.cpp:1901–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899}
1900
1901asCScriptNode *asCParser::ParseStringConstant()
1902{
1903 asCScriptNode *node = CreateNode(snConstant);
1904 if( node == 0 ) return 0;
1905
1906 sToken t;
1907 GetToken(&t);
1908 if( t.type != ttStringConstant && t.type != ttMultilineStringConstant && t.type != ttHeredocStringConstant )
1909 {
1910 Error(TXT_EXPECTED_STRING, &t);
1911 Error(InsteadFound(t), &t);
1912 return node;
1913 }
1914
1915 node->SetToken(&t);
1916 node->UpdateSourcePos(t.pos, t.length);
1917
1918 return node;
1919}
1920
1921// BNF:12: FUNCCALL ::= SCOPE IDENTIFIER TEMPLTYPELIST? ARGLIST
1922asCScriptNode *asCParser::ParseFunctionCall()

Callers

nothing calls this directly

Calls 2

SetTokenMethod · 0.80
UpdateSourcePosMethod · 0.80

Tested by

no test coverage detected