| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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('leg_apiimpl'); | 5 #library('leg_apiimpl'); |
| 6 | 6 |
| 7 #import('dart:uri'); | 7 #import('dart:uri'); |
| 8 | 8 |
| 9 #import('../compiler.dart', prefix: 'api'); | 9 #import('../compiler.dart', prefix: 'api'); |
| 10 #import('leg.dart', prefix: 'leg'); | 10 #import('leg.dart', prefix: 'leg'); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // [:span.uri:] might be [:null:] in case of a [Script] with no [uri]. For | 115 // [:span.uri:] might be [:null:] in case of a [Script] with no [uri]. For |
| 116 // instance in the [Types] constructor in typechecker.dart. | 116 // instance in the [Types] constructor in typechecker.dart. |
| 117 if (span === null || span.uri === null) { | 117 if (span === null || span.uri === null) { |
| 118 handler(null, null, null, message, kind); | 118 handler(null, null, null, message, kind); |
| 119 } else { | 119 } else { |
| 120 handler(translateUri(span.uri, null), span.begin, span.end, | 120 handler(translateUri(span.uri, null), span.begin, span.end, |
| 121 message, kind); | 121 message, kind); |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 | 124 |
| 125 bool get isMockCompilation() { | 125 bool get isMockCompilation { |
| 126 return mockableLibraryUsed | 126 return mockableLibraryUsed |
| 127 && (options.indexOf('--allow-mock-compilation') !== -1); | 127 && (options.indexOf('--allow-mock-compilation') !== -1); |
| 128 } | 128 } |
| 129 } | 129 } |
| OLD | NEW |