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

Method RegisterListPattern

sdk/angelscript/source/as_scriptfunction.cpp:259–275  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

257
258// internal
259int asCScriptFunction::RegisterListPattern(const char *decl, asCScriptNode *listNodes)
260{
261 if( listNodes == 0 )
262 return asINVALID_ARG;
263
264 // Build the representation of the list pattern from the script nodes
265 asSListPatternNode *node;
266 listPattern = asNEW(asSListPatternNode)(asLPT_START);
267 node = listPattern;
268
269 // Recursively parse the child
270 int r = ParseListPattern(node, decl, listNodes);
271
272 node->next = asNEW(asSListPatternNode)(asLPT_END);
273
274 return r;
275}
276
277// internal
278int asCScriptFunction::ParseListPattern(asSListPatternNode *&target, const char *decl, asCScriptNode *listNodes)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected