| 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 observatory_element; | 5 library observatory_element; |
| 6 | 6 |
| 7 import 'package:observatory/app.dart'; | 7 import 'package:observatory/app.dart'; |
| 8 import 'package:polymer/polymer.dart'; | 8 import 'package:polymer/polymer.dart'; |
| 9 | 9 |
| 10 /// Base class for all Observatory custom elements. | 10 /// Base class for all Observatory custom elements. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 bool isType(String type) { | 77 bool isType(String type) { |
| 78 return (type == 'Type'); | 78 return (type == 'Type'); |
| 79 } | 79 } |
| 80 | 80 |
| 81 bool isUnexpected(String type) { | 81 bool isUnexpected(String type) { |
| 82 return (!['Null', | 82 return (!['Null', |
| 83 'Smi', | 83 'Smi', |
| 84 'Mint', | 84 'Mint', |
| 85 'Biginit', | 85 'Bigint', |
| 86 'Bool', | 86 'Bool', |
| 87 'String', | 87 'String', |
| 88 'Double', | 88 'Double', |
| 89 'Instance', | 89 'Instance', |
| 90 'GrowableObjectArray', | 90 'GrowableObjectArray', |
| 91 'Array', | 91 'Array', |
| 92 'Type', | 92 'Type', |
| 93 'Error'].contains(type)); | 93 'Error'].contains(type)); |
| 94 } | 94 } |
| 95 } | 95 } |
| OLD | NEW |