Chromium Code Reviews| 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 dart2js.common.resolution; | 5 library dart2js.common.resolution; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../compile_time_constants.dart'; | 8 import '../compile_time_constants.dart'; |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../constants/expressions.dart' show ConstantExpression; | 10 import '../constants/expressions.dart' show ConstantExpression; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 | 151 |
| 152 /// Returns `true` if [element] has been resolved. | 152 /// Returns `true` if [element] has been resolved. |
| 153 // TODO(johnniwinther): Normalize semantics between normal and deserialized | 153 // TODO(johnniwinther): Normalize semantics between normal and deserialized |
| 154 // elements; deserialized elements are always resolved but the method will | 154 // elements; deserialized elements are always resolved but the method will |
| 155 // return `false`. | 155 // return `false`. |
| 156 bool hasBeenResolved(Element element); | 156 bool hasBeenResolved(Element element); |
| 157 | 157 |
| 158 /// Resolve [element] if it has not already been resolved. | 158 /// Resolve [element] if it has not already been resolved. |
| 159 void ensureResolved(Element element); | 159 void ensureResolved(Element element); |
| 160 | 160 |
| 161 /// Ensure the resolution all members of [element]. | |
|
Harry Terkelsen
2016/11/11 22:07:30
resolution all -> resolution of all
Johnni Winther
2016/11/14 09:16:06
Done.
| |
| 162 void ensureClassMembers(ClassElement element); | |
| 163 | |
| 161 /// Registers that [element] has a compile time error. | 164 /// Registers that [element] has a compile time error. |
| 162 /// | 165 /// |
| 163 /// The error itself is given in [message]. | 166 /// The error itself is given in [message]. |
| 164 void registerCompileTimeError(Element element, DiagnosticMessage message); | 167 void registerCompileTimeError(Element element, DiagnosticMessage message); |
| 165 | 168 |
| 166 ResolutionWorkItem createWorkItem(Element element); | 169 ResolutionWorkItem createWorkItem(Element element); |
| 167 | 170 |
| 168 /// Returns `true` if [element] as a fully computed [ResolvedAst]. | 171 /// Returns `true` if [element] as a fully computed [ResolvedAst]. |
| 169 bool hasResolvedAst(ExecutableElement element); | 172 bool hasResolvedAst(ExecutableElement element); |
| 170 | 173 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 if (cls.isPatch) { | 253 if (cls.isPatch) { |
| 251 patchParser.parsePatchClassNode(cls); | 254 patchParser.parsePatchClassNode(cls); |
| 252 } | 255 } |
| 253 }); | 256 }); |
| 254 } | 257 } |
| 255 | 258 |
| 256 @override | 259 @override |
| 257 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( | 260 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( |
| 258 canUseNative: backend.canLibraryUseNative(element.library)); | 261 canUseNative: backend.canLibraryUseNative(element.library)); |
| 259 } | 262 } |
| OLD | NEW |