| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 ? (script.tokenToCol(currentPos)) | 537 ? (script.tokenToCol(currentPos)) |
| 538 : null); | 538 : null); |
| 539 if (_currentCol != null) { | 539 if (_currentCol != null) { |
| 540 _currentCol--; // make this 0-based. | 540 _currentCol--; // make this 0-based. |
| 541 } | 541 } |
| 542 | 542 |
| 543 _endLine = (endPos != null | 543 _endLine = (endPos != null |
| 544 ? script.tokenToLine(endPos) | 544 ? script.tokenToLine(endPos) |
| 545 : script.lines.length + script.lineOffset); | 545 : script.lines.length + script.lineOffset); |
| 546 | 546 |
| 547 if (_startLine == null || _endLine == null) { |
| 548 return; |
| 549 } |
| 550 |
| 547 annotations.clear(); | 551 annotations.clear(); |
| 548 | 552 |
| 549 addCurrentExecutionAnnotation(); | 553 addCurrentExecutionAnnotation(); |
| 550 addBreakpointAnnotations(); | 554 addBreakpointAnnotations(); |
| 551 | 555 |
| 552 if (!inDebuggerContext && script.library != null) { | 556 if (!inDebuggerContext && script.library != null) { |
| 553 if (hasLoadedLibraryDeclarations) { | 557 if (hasLoadedLibraryDeclarations) { |
| 554 addLibraryAnnotations(); | 558 addLibraryAnnotations(); |
| 555 addDependencyAnnotations(); | 559 addDependencyAnnotations(); |
| 556 addPartAnnotations(); | 560 addPartAnnotations(); |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 @CustomTag('source-inset') | 1022 @CustomTag('source-inset') |
| 1019 class SourceInsetElement extends PolymerElement { | 1023 class SourceInsetElement extends PolymerElement { |
| 1020 SourceInsetElement.created() : super.created(); | 1024 SourceInsetElement.created() : super.created(); |
| 1021 | 1025 |
| 1022 @published SourceLocation location; | 1026 @published SourceLocation location; |
| 1023 @published String height = null; | 1027 @published String height = null; |
| 1024 @published int currentPos; | 1028 @published int currentPos; |
| 1025 @published bool inDebuggerContext = false; | 1029 @published bool inDebuggerContext = false; |
| 1026 @published ObservableList variables; | 1030 @published ObservableList variables; |
| 1027 } | 1031 } |
| OLD | NEW |