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

Side by Side Diff: pkg/compiler/lib/src/js_backend/codegen/task.dart

Issue 1902363002: Derive source information from ResolvedAst. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Generate code using the cps-based IR pipeline. 5 /// Generate code using the cps-based IR pipeline.
6 library code_generator_task; 6 library code_generator_task;
7 7
8 import 'glue.dart'; 8 import 'glue.dart';
9 import 'codegen.dart'; 9 import 'codegen.dart';
10 import 'unsugar.dart'; 10 import 'unsugar.dart';
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 cpsBuilderTask, 344 cpsBuilderTask,
345 cpsOptimizationTask, 345 cpsOptimizationTask,
346 treeBuilderTask, 346 treeBuilderTask,
347 treeOptimizationTask 347 treeOptimizationTask
348 ]..addAll(fallbackCompiler.tasks); 348 ]..addAll(fallbackCompiler.tasks);
349 } 349 }
350 350
351 js.Node attachPosition(js.Node node, AstElement element) { 351 js.Node attachPosition(js.Node node, AstElement element) {
352 return node.withSourceInformation(sourceInformationFactory 352 return node.withSourceInformation(sourceInformationFactory
353 .createBuilderForContext(element) 353 .createBuilderForContext(element)
354 .buildDeclaration(element)); 354 .buildDeclaration(backend.frontend.getResolvedAst(element)));
355 } 355 }
356 } 356 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/io/start_end_information.dart ('k') | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698