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

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

Issue 1120313004: Get memento objects from tasks, remember in cache and pass back to tasks. (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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer.src.task.model; 5 library analyzer.src.task.model;
6 6
7 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; 7 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask;
8 import 'package:analyzer/src/task/inputs.dart'; 8 import 'package:analyzer/src/task/inputs.dart';
9 import 'package:analyzer/task/model.dart'; 9 import 'package:analyzer/task/model.dart';
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 * Initialize a newly created task descriptor to have the given [name] and to 114 * Initialize a newly created task descriptor to have the given [name] and to
115 * describe a task that takes the inputs built using the given [createTaskInpu ts], 115 * describe a task that takes the inputs built using the given [createTaskInpu ts],
116 * and produces the given [results]. The [buildTask] will be used to create 116 * and produces the given [results]. The [buildTask] will be used to create
117 * the instance of [AnalysisTask] thusly described. 117 * the instance of [AnalysisTask] thusly described.
118 */ 118 */
119 TaskDescriptorImpl( 119 TaskDescriptorImpl(
120 this.name, this.buildTask, this.createTaskInputs, this.results); 120 this.name, this.buildTask, this.createTaskInputs, this.results);
121 121
122 @override 122 @override
123 AnalysisTask createTask(AnalysisContext context, AnalysisTarget target, 123 AnalysisTask createTask(AnalysisContext context, AnalysisTarget target,
124 Map<String, dynamic> inputs) { 124 Map<String, dynamic> inputs, dynamic inputMemento) {
125 AnalysisTask task = buildTask(context, target); 125 AnalysisTask task = buildTask(context, target);
126 task.inputs = inputs; 126 task.inputs = inputs;
127 task.inputMemento = inputMemento;
127 return task; 128 return task;
128 } 129 }
129 130
130 @override 131 @override
131 String toString() => name; 132 String toString() => name;
132 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698