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

Side by Side Diff: pkg/dev_compiler/lib/src/compiler/compiler.dart

Issue 2768693003: fix errors and warnings in DDC (Closed)
Patch Set: update test expectation 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
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 import 'dart:collection' show HashSet, Queue; 5 import 'dart:collection' show HashSet, Queue;
6 import 'dart:convert' show BASE64, JSON, UTF8; 6 import 'dart:convert' show JSON;
7 import 'dart:io' show File; 7 import 'dart:io' show File;
8 8
9 import 'package:analyzer/analyzer.dart' 9 import 'package:analyzer/analyzer.dart'
10 show AnalysisError, CompilationUnit, ErrorSeverity; 10 show AnalysisError, CompilationUnit, ErrorSeverity;
11 import 'package:analyzer/dart/element/element.dart' show LibraryElement; 11 import 'package:analyzer/dart/element/element.dart' show LibraryElement;
12 import 'package:analyzer/file_system/file_system.dart' show ResourceProvider; 12 import 'package:analyzer/file_system/file_system.dart' show ResourceProvider;
13 import 'package:analyzer/file_system/physical_file_system.dart' 13 import 'package:analyzer/file_system/physical_file_system.dart'
14 show PhysicalResourceProvider; 14 show PhysicalResourceProvider;
15 import 'package:analyzer/src/context/builder.dart' show ContextBuilder; 15 import 'package:analyzer/src/context/builder.dart' show ContextBuilder;
16 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl; 16 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl;
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 return map; 596 return map;
597 } 597 }
598 598
599 /// Cleanup the dart_sdk source map. 599 /// Cleanup the dart_sdk source map.
600 /// 600 ///
601 /// Strip out files that should not be included in the sdk sourcemap as they 601 /// Strip out files that should not be included in the sdk sourcemap as they
602 /// are implementation details that would just confuse users. 602 /// are implementation details that would just confuse users.
603 /// Normalize sdk urls to use "dart:" for more understandable stack traces. 603 /// Normalize sdk urls to use "dart:" for more understandable stack traces.
604 Map cleanupSdkSourcemap(Map sourceMap) { 604 Map cleanupSdkSourcemap(Map sourceMap) {
605 var map = new Map.from(sourceMap); 605 var map = new Map.from(sourceMap);
606 var list = new List.from(map['sources']);
607 map['sources'] = map['sources'] 606 map['sources'] = map['sources']
608 .map((url) => url.contains('/_internal/') ? null : url) 607 .map((url) => url.contains('/_internal/') ? null : url)
609 .toList(); 608 .toList();
610 return map; 609 return map;
611 } 610 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/code_generator.dart ('k') | pkg/dev_compiler/test/not_yet_strong_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698