| 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 elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution, ParsingContext; | 8 import '../common/resolution.dart' show Resolution, ParsingContext; |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../constants/constant_constructors.dart'; | 10 import '../constants/constant_constructors.dart'; |
| (...skipping 3232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3243 ResolvedAst get resolvedAst { | 3243 ResolvedAst get resolvedAst { |
| 3244 Node node = definingElement.node; | 3244 Node node = definingElement.node; |
| 3245 Node body; | 3245 Node body; |
| 3246 if (definingElement.isField) { | 3246 if (definingElement.isField) { |
| 3247 FieldElement field = definingElement; | 3247 FieldElement field = definingElement; |
| 3248 body = field.initializer; | 3248 body = field.initializer; |
| 3249 } else if (node != null && node.asFunctionExpression() != null) { | 3249 } else if (node != null && node.asFunctionExpression() != null) { |
| 3250 body = node.asFunctionExpression().body; | 3250 body = node.asFunctionExpression().body; |
| 3251 } | 3251 } |
| 3252 return new ParsedResolvedAst( | 3252 return new ParsedResolvedAst( |
| 3253 declaration, node, body, definingElement.treeElements); | 3253 declaration, |
| 3254 node, |
| 3255 body, |
| 3256 definingElement.treeElements, |
| 3257 definingElement.compilationUnit.script.resourceUri); |
| 3254 } | 3258 } |
| 3255 } | 3259 } |
| OLD | NEW |