| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.fletch_compiler; | 5 library fletchc.fletch_compiler; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 Future; | 8 Future; |
| 9 | 9 |
| 10 import 'dart:convert' show | 10 import 'dart:convert' show |
| 11 UTF8; | 11 UTF8; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 } | 332 } |
| 333 | 333 |
| 334 bool _looksLikeNativesJson(Uri uri) { | 334 bool _looksLikeNativesJson(Uri uri) { |
| 335 return new File.fromUri(uri).existsSync(); | 335 return new File.fromUri(uri).existsSync(); |
| 336 } | 336 } |
| 337 | 337 |
| 338 Uri _guessNativesJson() { | 338 Uri _guessNativesJson() { |
| 339 Uri uri = executable.resolve('natives.json'); | 339 Uri uri = executable.resolve('natives.json'); |
| 340 return _looksLikeNativesJson(uri) ? uri : null; | 340 return _looksLikeNativesJson(uri) ? uri : null; |
| 341 } | 341 } |
| OLD | NEW |