| 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/implementation/scanner/scannerlib.dart' show | 9 import 'package:compiler/implementation/scanner/scannerlib.dart' show |
| 10 EOF_TOKEN, | 10 EOF_TOKEN, |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 267 } |
| 268 return currentTheme.foreground; | 268 return currentTheme.foreground; |
| 269 } | 269 } |
| 270 | 270 |
| 271 diagnostic(text, tip) { | 271 diagnostic(text, tip) { |
| 272 if (text is String) { | 272 if (text is String) { |
| 273 text = new Text(text); | 273 text = new Text(text); |
| 274 } | 274 } |
| 275 return new AnchorElement() | 275 return new AnchorElement() |
| 276 ..classes.add('diagnostic') | 276 ..classes.add('diagnostic') |
| 277 ..append(text) | 277 ..append(tip) |
| 278 ..append(tip); | 278 ..append(text); |
| 279 } | 279 } |
| OLD | NEW |