OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 models; | 5 part of models; |
6 | 6 |
7 enum FunctionKind { | 7 enum FunctionKind { |
8 regular, | 8 regular, |
9 closure, | 9 closure, |
10 getter, | 10 getter, |
11 setter, | 11 setter, |
12 constructor, | 12 constructor, |
13 implicitGetter, | 13 implicitGetter, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 FunctionKind get kind; | 60 FunctionKind get kind; |
61 } | 61 } |
62 | 62 |
63 abstract class Function extends Object implements FunctionRef { | 63 abstract class Function extends Object implements FunctionRef { |
64 /// The location of this function in the source code. [optional] | 64 /// The location of this function in the source code. [optional] |
65 SourceLocation get location; | 65 SourceLocation get location; |
66 | 66 |
67 /// The compiled code associated with this function. [optional] | 67 /// The compiled code associated with this function. [optional] |
68 CodeRef get code; | 68 CodeRef get code; |
69 } | 69 } |
OLD | NEW |