| 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 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'package:observatory/models.dart' as M; | 6 import 'package:observatory/models.dart' as M; |
| 7 import 'package:observatory/src/elements/class_ref.dart'; | 7 import 'package:observatory/src/elements/class_ref.dart'; |
| 8 import 'package:observatory/src/elements/code_ref.dart'; | 8 import 'package:observatory/src/elements/code_ref.dart'; |
| 9 import 'package:observatory/src/elements/context_ref.dart'; | 9 import 'package:observatory/src/elements/context_ref.dart'; |
| 10 import 'package:observatory/src/elements/error_ref.dart'; | 10 import 'package:observatory/src/elements/error_ref.dart'; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } else if (ref is M.LibraryRef) { | 50 } else if (ref is M.LibraryRef) { |
| 51 return new LibraryRefElement(isolate, ref, queue: queue); | 51 return new LibraryRefElement(isolate, ref, queue: queue); |
| 52 } else if (ref is M.LocalVarDescriptorsRef) { | 52 } else if (ref is M.LocalVarDescriptorsRef) { |
| 53 return new LocalVarDescriptorsRefElement(isolate, ref, queue: queue); | 53 return new LocalVarDescriptorsRefElement(isolate, ref, queue: queue); |
| 54 } else if (ref is M.MegamorphicCacheRef) { | 54 } else if (ref is M.MegamorphicCacheRef) { |
| 55 return new MegamorphicCacheRefElement(isolate, ref, queue: queue); | 55 return new MegamorphicCacheRefElement(isolate, ref, queue: queue); |
| 56 } else if (ref is M.ObjectPoolRef) { | 56 } else if (ref is M.ObjectPoolRef) { |
| 57 return new ObjectPoolRefElement(isolate, ref, queue: queue); | 57 return new ObjectPoolRefElement(isolate, ref, queue: queue); |
| 58 } else if (ref is M.PcDescriptorsRef) { | 58 } else if (ref is M.PcDescriptorsRef) { |
| 59 return new PcDescriptorsRefElement(isolate, ref, queue: queue); | 59 return new PcDescriptorsRefElement(isolate, ref, queue: queue); |
| 60 } else if (ref is M.Sentinel) { | |
| 61 return new SentinelValueElement(ref, queue: queue); | |
| 62 } else if (ref is M.ScriptRef) { | 60 } else if (ref is M.ScriptRef) { |
| 63 return new ScriptRefElement(isolate, ref, queue: queue); | 61 return new ScriptRefElement(isolate, ref, queue: queue); |
| 64 } else if (ref is M.TypeArgumentsRef) { | 62 } else if (ref is M.TypeArgumentsRef) { |
| 65 return new TypeArgumentsRefElement(isolate, ref, queue: queue); | 63 return new TypeArgumentsRefElement(isolate, ref, queue: queue); |
| 66 } else if (ref is M.TokenStreamRef) { | 64 } else if (ref is M.TokenStreamRef) { |
| 67 return new TokenStreamRefElement(isolate, ref, queue: queue); | 65 return new TokenStreamRefElement(isolate, ref, queue: queue); |
| 68 } else if (ref is M.UnknownObjectRef) { | 66 } else if (ref is M.UnknownObjectRef) { |
| 69 return new UnknownObjectRefElement(isolate, ref, queue: queue); | 67 return new UnknownObjectRefElement(isolate, ref, queue: queue); |
| 70 } else { | 68 } else { |
| 71 return new AnchorElement(href: Uris.inspect(isolate, object: ref)) | 69 return new AnchorElement(href: Uris.inspect(isolate, object: ref)) |
| 72 ..text = 'object'; | 70 ..text = 'object'; |
| 73 } | 71 } |
| 72 } else if (ref is M.Sentinel) { |
| 73 return new SentinelValueElement(ref, queue: queue); |
| 74 } | 74 } |
| 75 throw new Exception('Unknown runtimeType (${ref.runtimeType})'); | 75 throw new Exception('Unknown runtimeType (${ref.runtimeType})'); |
| 76 } | 76 } |
| OLD | NEW |