internal
| 257 | |
| 258 | // internal |
| 259 | int 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 |
| 278 | int asCScriptFunction::ParseListPattern(asSListPatternNode *&target, const char *decl, asCScriptNode *listNodes) |
no outgoing calls
no test coverage detected