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

Side by Side Diff: pkg/kernel/lib/transformations/closure/mock.dart

Issue 2729913005: [Fasta] include source code in dill (Closed)
Patch Set: Use Uint8List.view when possible Created 3 years, 9 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
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 kernel.transformations.closure.mock; 5 library kernel.transformations.closure.mock;
6 6
7 import '../../ast.dart' 7 import '../../ast.dart'
8 show 8 show
9 Arguments, 9 Arguments,
10 Block, 10 Block,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 name: "Context", 184 name: "Context",
185 supertype: new Supertype(coreTypes.objectClass, const <DartType>[]), 185 supertype: new Supertype(coreTypes.objectClass, const <DartType>[]),
186 constructors: [constructor], 186 constructors: [constructor],
187 fields: fields, 187 fields: fields,
188 procedures: procedures, 188 procedures: procedures,
189 fileUri: fileUri); 189 fileUri: fileUri);
190 Library mock = new Library(Uri.parse(fileUri), 190 Library mock = new Library(Uri.parse(fileUri),
191 name: "mock", classes: [contextClass])..fileUri = fileUri; 191 name: "mock", classes: [contextClass])..fileUri = fileUri;
192 program.libraries.add(mock); 192 program.libraries.add(mock);
193 mock.parent = program; 193 mock.parent = program;
194 program.uriToSource[mock.fileUri] = new Source(<int>[0], ""); 194 program.uriToSource[mock.fileUri] = new Source(<int>[0], const <int>[]);
195 return contextClass; 195 return contextClass;
196 } 196 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698