Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1935933002: Fix source information positions for deserialized patched elements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/io/position_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698