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

Side by Side Diff: pkg/analyzer/lib/src/task/task_dart.dart

Issue 1125123006: Add a "librarySource" field to CompilationUnitElementImpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
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 library engine.task.dart; 5 library engine.task.dart;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/resolver.dart'; 10 import 'package:analyzer/src/generated/resolver.dart';
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * Return the compilation unit element that was produced, or `null` if the 75 * Return the compilation unit element that was produced, or `null` if the
76 * task has not yet been performed or if an exception occurred. 76 * task has not yet been performed or if an exception occurred.
77 */ 77 */
78 CompilationUnitElement getUnitElement() { 78 CompilationUnitElement getUnitElement() {
79 return unitElement; 79 return unitElement;
80 } 80 }
81 81
82 @override 82 @override
83 void internalPerform() { 83 void internalPerform() {
84 CompilationUnitBuilder builder = new CompilationUnitBuilder(); 84 CompilationUnitBuilder builder = new CompilationUnitBuilder();
85 unitElement = builder.buildCompilationUnit(source, unit); 85 unitElement = builder.buildCompilationUnit(source, unit, library);
86 } 86 }
87 } 87 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/incremental_element_builder.dart ('k') | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698