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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_loader.dart

Issue 2751093004: [fasta] Flip source flag and include source by default (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/compiler_command_line.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/source_loader.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart
index 3c67c0cdc7668f6d4e23f360ac07fe28dd38faee..7c4d8781d5d30527f2c0483dc4d8563d082a5d00 100644
--- a/pkg/front_end/lib/src/fasta/source/source_loader.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart
@@ -46,7 +46,7 @@ import '../compiler_context.dart' show CompilerContext;
class SourceLoader<L> extends Loader<L> {
final Map<Uri, List<int>> sourceBytes = <Uri, List<int>>{};
- final includeSource = CompilerContext.current.options.includeSource;
+ final excludeSource = CompilerContext.current.options.excludeSource;
// Used when building directly to kernel.
ClassHierarchy hierarchy;
@@ -92,7 +92,7 @@ class SourceLoader<L> extends Loader<L> {
}
List<int> getSource(List<int> bytes) {
- if (!includeSource) return const <int>[];
+ if (excludeSource) return const <int>[];
// bytes is 0-terminated. We don't want that included.
if (bytes is Uint8List) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/compiler_command_line.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698