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 trydart.editor; | 5 library trydart.editor; |
6 | 6 |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 | 8 |
9 import 'package:compiler/src/scanner/scannerlib.dart' show | 9 import 'package:compiler/src/scanner/string_scanner.dart' show |
| 10 StringScanner; |
| 11 |
| 12 import 'package:compiler/src/scanner/token.dart' show |
10 EOF_TOKEN, | 13 EOF_TOKEN, |
11 ErrorToken, | 14 ErrorToken, |
12 StringScanner, | |
13 Token; | 15 Token; |
14 | 16 |
15 import 'ui.dart' show | 17 import 'ui.dart' show |
16 currentTheme, | 18 currentTheme, |
17 hackDiv, | 19 hackDiv, |
18 interaction, | 20 interaction, |
19 mainEditorPane, | 21 mainEditorPane, |
20 observer, | 22 observer, |
21 outputDiv; | 23 outputDiv; |
22 | 24 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 content = new Text(content); | 269 content = new Text(content); |
268 } | 270 } |
269 if (content is! List) { | 271 if (content is! List) { |
270 content = [content]; | 272 content = [content]; |
271 } | 273 } |
272 return new AnchorElement() | 274 return new AnchorElement() |
273 ..classes.add('diagnostic') | 275 ..classes.add('diagnostic') |
274 ..append(tip) // Should be first for better Firefox editing. | 276 ..append(tip) // Should be first for better Firefox editing. |
275 ..nodes.addAll(content); | 277 ..nodes.addAll(content); |
276 } | 278 } |
OLD | NEW |