| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Development server that compiles Dart to JS on the fly. | 5 /// Development server that compiles Dart to JS on the fly. |
| 6 library dev_compiler.src.server; | |
| 7 | 6 |
| 8 import 'dart:async'; | 7 import 'dart:async'; |
| 9 import 'dart:convert'; | 8 import 'dart:convert'; |
| 10 import 'dart:io'; | 9 import 'dart:io'; |
| 11 | 10 |
| 12 import 'package:analyzer/file_system/file_system.dart' show ResourceUriResolver; | 11 import 'package:analyzer/file_system/file_system.dart' show ResourceUriResolver; |
| 13 import 'package:analyzer/file_system/memory_file_system.dart'; | 12 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 14 import 'package:analyzer/src/generated/engine.dart' | 13 import 'package:analyzer/src/generated/engine.dart' |
| 15 show AnalysisContext, ChangeSet; | 14 show AnalysisContext, ChangeSet; |
| 16 import 'package:analyzer/src/generated/error.dart'; | 15 import 'package:analyzer/src/generated/error.dart'; |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 319 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
| 321 var src = resolver.resolveAbsolute(uri, actualUri); | 320 var src = resolver.resolveAbsolute(uri, actualUri); |
| 322 return src.exists() ? src : null; | 321 return src.exists() ? src : null; |
| 323 } | 322 } |
| 324 | 323 |
| 325 Uri restoreAbsolute(Source source) => resolver.restoreAbsolute(source); | 324 Uri restoreAbsolute(Source source) => resolver.restoreAbsolute(source); |
| 326 } | 325 } |
| 327 | 326 |
| 328 final _log = new Logger('dev_compiler.src.server'); | 327 final _log = new Logger('dev_compiler.src.server'); |
| 329 final _earlyErrorResult = new CheckerResults(const [], true); | 328 final _earlyErrorResult = new CheckerResults(const [], true); |
| OLD | NEW |