|
|
| version 1.403, 2017/01/13 13:50:28 | version 1.405, 2017/02/07 22:00:40 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: executor part of request class. | Parser: executor part of request class. |
| Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 1470 const String* Request::execute_virtual_m | Line 1470 const String* Request::execute_virtual_m |
| } | } |
| const String* Request::get_method_filespec(const Method* method){ | const String* Request::get_method_filespec(const Method* method){ |
| Operation::Origin origin=get_method_origin(method); | |
| return origin.file_no ? get_used_filespec(origin.file_no) : NULL; | |
| } | |
| const Operation::Origin Request::get_method_origin(const Method* method){ | |
| Operation::Origin origin={0, 0, 0}; | |
| if(ArrayOperation* code=method->parser_code) | if(ArrayOperation* code=method->parser_code) |
| if(code){ | if(code){ |
| Operation::Origin origin={0, 0, 0}; | |
| Array_iterator<Operation> i(*code); | Array_iterator<Operation> i(*code); |
| while( i.has_next() ){ | while( i.has_next() ){ |
| switch( i.next().code ){ | switch( i.next().code ){ |
| Line 1539 const String* Request::get_method_filesp | Line 1545 const String* Request::get_method_filesp |
| default: break; | default: break; |
| } | } |
| if(origin.file_no) | if(origin.file_no) |
| return get_used_filespec(origin.file_no); | return origin; |
| } | } |
| } | } |
| return 0; | return origin; |
| } | } |