OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/service.h" | 5 #include "vm/service.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
10 | 10 |
(...skipping 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 } | 2466 } |
2467 if (js->HasParam("endTokenPos")) { | 2467 if (js->HasParam("endTokenPos")) { |
2468 js->PrintError( | 2468 js->PrintError( |
2469 kInvalidParams, | 2469 kInvalidParams, |
2470 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", | 2470 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", |
2471 js->method()); | 2471 js->method()); |
2472 return true; | 2472 return true; |
2473 } | 2473 } |
2474 } | 2474 } |
2475 SourceReport report(report_set, compile_mode); | 2475 SourceReport report(report_set, compile_mode); |
2476 report.PrintJSON(js, script, start_pos, end_pos); | 2476 report.PrintJSON(js, |
| 2477 script, |
| 2478 TokenPosition(start_pos), |
| 2479 TokenPosition(end_pos)); |
2477 return true; | 2480 return true; |
2478 } | 2481 } |
2479 | 2482 |
2480 | 2483 |
2481 static const MethodParameter* get_call_site_data_params[] = { | 2484 static const MethodParameter* get_call_site_data_params[] = { |
2482 RUNNABLE_ISOLATE_PARAMETER, | 2485 RUNNABLE_ISOLATE_PARAMETER, |
2483 new IdParameter("targetId", false), | 2486 new IdParameter("targetId", false), |
2484 NULL, | 2487 NULL, |
2485 }; | 2488 }; |
2486 | 2489 |
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3949 const ServiceMethodDescriptor& method = service_methods_[i]; | 3952 const ServiceMethodDescriptor& method = service_methods_[i]; |
3950 if (strcmp(method_name, method.name) == 0) { | 3953 if (strcmp(method_name, method.name) == 0) { |
3951 return &method; | 3954 return &method; |
3952 } | 3955 } |
3953 } | 3956 } |
3954 return NULL; | 3957 return NULL; |
3955 } | 3958 } |
3956 | 3959 |
3957 | 3960 |
3958 } // namespace dart | 3961 } // namespace dart |
OLD | NEW |