| 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 script_inset_element; | 5 library script_inset_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
| 10 import 'service_ref.dart'; | 10 import 'service_ref.dart'; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 ? (script.tokenToCol(currentPos) - 1) // make this 0-based. | 442 ? (script.tokenToCol(currentPos) - 1) // make this 0-based. |
| 443 : null); | 443 : null); |
| 444 _endLine = (endPos != null | 444 _endLine = (endPos != null |
| 445 ? script.tokenToLine(endPos) | 445 ? script.tokenToLine(endPos) |
| 446 : script.lines.length + script.lineOffset); | 446 : script.lines.length + script.lineOffset); |
| 447 | 447 |
| 448 annotations.clear(); | 448 annotations.clear(); |
| 449 | 449 |
| 450 addCurrentExecutionAnnotation(); | 450 addCurrentExecutionAnnotation(); |
| 451 | 451 |
| 452 if (!inDebuggerContext) { | 452 if (!inDebuggerContext && script.library != null) { |
| 453 loadDeclarationsOfLibrary(script.library); | 453 loadDeclarationsOfLibrary(script.library); |
| 454 | 454 |
| 455 // Add fields before functions so they beat out conflicting | 455 // Add fields before functions so they beat out conflicting |
| 456 // implicit g/setters. | 456 // implicit g/setters. |
| 457 addClassAnnotations(); | 457 addClassAnnotations(); |
| 458 addFieldAnnotations(); | 458 addFieldAnnotations(); |
| 459 addFunctionAnnotations(); | 459 addFunctionAnnotations(); |
| 460 addCallSiteAnnotations(); | 460 addCallSiteAnnotations(); |
| 461 } | 461 } |
| 462 | 462 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 class SourceInsetElement extends PolymerElement { | 761 class SourceInsetElement extends PolymerElement { |
| 762 SourceInsetElement.created() : super.created(); | 762 SourceInsetElement.created() : super.created(); |
| 763 | 763 |
| 764 @published SourceLocation location; | 764 @published SourceLocation location; |
| 765 @published String height = null; | 765 @published String height = null; |
| 766 @published int currentPos; | 766 @published int currentPos; |
| 767 @published bool inDebuggerContext = false; | 767 @published bool inDebuggerContext = false; |
| 768 @published ObservableList variables; | 768 @published ObservableList variables; |
| 769 } | 769 } |
| 770 | 770 |
| OLD | NEW |