OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 part of service; | 5 part of service; |
6 | 6 |
7 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
9 // object ring. | 9 // object ring. |
10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
(...skipping 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3013 } | 3013 } |
3014 | 3014 |
3015 M.FunctionKind stringToFunctionKind(String value) { | 3015 M.FunctionKind stringToFunctionKind(String value) { |
3016 switch (value) { | 3016 switch (value) { |
3017 case 'RegularFunction': | 3017 case 'RegularFunction': |
3018 return M.FunctionKind.regular; | 3018 return M.FunctionKind.regular; |
3019 case 'ClosureFunction': | 3019 case 'ClosureFunction': |
3020 return M.FunctionKind.closure; | 3020 return M.FunctionKind.closure; |
3021 case 'ImplicitClosureFunction': | 3021 case 'ImplicitClosureFunction': |
3022 return M.FunctionKind.implicitClosure; | 3022 return M.FunctionKind.implicitClosure; |
| 3023 case 'ConvertedClosureFunction': |
| 3024 return M.FunctionKind.convertedClosure; |
3023 case 'GetterFunction': | 3025 case 'GetterFunction': |
3024 return M.FunctionKind.getter; | 3026 return M.FunctionKind.getter; |
3025 case 'SetterFunction': | 3027 case 'SetterFunction': |
3026 return M.FunctionKind.setter; | 3028 return M.FunctionKind.setter; |
3027 case 'Constructor': | 3029 case 'Constructor': |
3028 return M.FunctionKind.constructor; | 3030 return M.FunctionKind.constructor; |
3029 case 'ImplicitGetter': | 3031 case 'ImplicitGetter': |
3030 return M.FunctionKind.implicitGetter; | 3032 return M.FunctionKind.implicitGetter; |
3031 case 'ImplicitSetter': | 3033 case 'ImplicitSetter': |
3032 return M.FunctionKind.implicitSetter; | 3034 return M.FunctionKind.implicitSetter; |
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4710 final String alias; | 4712 final String alias; |
4711 final String method; | 4713 final String method; |
4712 final String service; | 4714 final String service; |
4713 | 4715 |
4714 Service(this.alias, this.method, this.service) { | 4716 Service(this.alias, this.method, this.service) { |
4715 assert(this.alias != null); | 4717 assert(this.alias != null); |
4716 assert(this.method != null); | 4718 assert(this.method != null); |
4717 assert(this.service != null); | 4719 assert(this.service != null); |
4718 } | 4720 } |
4719 } | 4721 } |
OLD | NEW |