| 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 library function_view_element; | 5 library function_view_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
| 10 import 'package:observatory/src/elements/class_ref.dart'; | 10 import 'package:observatory/src/elements/class_ref.dart'; |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 } | 392 } |
| 393 _r.dirty(); | 393 _r.dirty(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 static String _functionKindToString(M.FunctionKind kind) { | 396 static String _functionKindToString(M.FunctionKind kind) { |
| 397 switch (kind) { | 397 switch (kind) { |
| 398 case M.FunctionKind.regular: | 398 case M.FunctionKind.regular: |
| 399 return 'regular'; | 399 return 'regular'; |
| 400 case M.FunctionKind.closure: | 400 case M.FunctionKind.closure: |
| 401 return 'closure'; | 401 return 'closure'; |
| 402 case M.FunctionKind.implicitClosure: | |
| 403 return 'implicit closure'; | |
| 404 case M.FunctionKind.getter: | 402 case M.FunctionKind.getter: |
| 405 return 'getter'; | 403 return 'getter'; |
| 406 case M.FunctionKind.setter: | 404 case M.FunctionKind.setter: |
| 407 return 'setter'; | 405 return 'setter'; |
| 408 case M.FunctionKind.constructor: | 406 case M.FunctionKind.constructor: |
| 409 return 'constructor'; | 407 return 'constructor'; |
| 410 case M.FunctionKind.implicitGetter: | 408 case M.FunctionKind.implicitGetter: |
| 411 return 'implicit getter'; | 409 return 'implicit getter'; |
| 412 case M.FunctionKind.implicitSetter: | 410 case M.FunctionKind.implicitSetter: |
| 413 return 'implicit setter'; | 411 return 'implicit setter'; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 430 case M.FunctionKind.stub: | 428 case M.FunctionKind.stub: |
| 431 return 'stub'; | 429 return 'stub'; |
| 432 case M.FunctionKind.tag: | 430 case M.FunctionKind.tag: |
| 433 return 'tag'; | 431 return 'tag'; |
| 434 case M.FunctionKind.signatureFunction: | 432 case M.FunctionKind.signatureFunction: |
| 435 return 'signature function'; | 433 return 'signature function'; |
| 436 } | 434 } |
| 437 throw new Exception('Unknown Functionkind ($kind)'); | 435 throw new Exception('Unknown Functionkind ($kind)'); |
| 438 } | 436 } |
| 439 } | 437 } |
| OLD | NEW |