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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/library_loader.dart

Issue 12642004: Don't output tons of messages on apidoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * [CompilerTask] for loading libraries and setting up the import/export scopes. 8 * [CompilerTask] for loading libraries and setting up the import/export scopes.
9 * 9 *
10 * The library loader uses four different kinds of URIs in different parts of 10 * The library loader uses four different kinds of URIs in different parts of
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 LibraryName tag = library.libraryTag; 313 LibraryName tag = library.libraryTag;
314 if (tag != null) { 314 if (tag != null) {
315 String name = library.getLibraryOrScriptName(); 315 String name = library.getLibraryOrScriptName();
316 LibraryElement existing = 316 LibraryElement existing =
317 libraryNames.putIfAbsent(name, () => library); 317 libraryNames.putIfAbsent(name, () => library);
318 if (!identical(existing, library)) { 318 if (!identical(existing, library)) {
319 Uri uri = library.entryCompilationUnit.script.uri; 319 Uri uri = library.entryCompilationUnit.script.uri;
320 compiler.reportMessage( 320 compiler.reportMessage(
321 compiler.spanFromSpannable(tag.name, uri), 321 compiler.spanFromSpannable(tag.name, uri),
322 MessageKind.DUPLICATED_LIBRARY_NAME.error({'libraryName': name}), 322 MessageKind.DUPLICATED_LIBRARY_NAME.error({'libraryName': name}),
323 api.Diagnostic.WARNING); 323 api.Diagnostic.VERBOSE_INFO);
324 Uri existingUri = existing.entryCompilationUnit.script.uri; 324 Uri existingUri = existing.entryCompilationUnit.script.uri;
325 compiler.reportMessage( 325 compiler.reportMessage(
326 compiler.spanFromSpannable(existing.libraryTag.name, existingUri), 326 compiler.spanFromSpannable(existing.libraryTag.name, existingUri),
327 MessageKind.DUPLICATED_LIBRARY_NAME.error({'libraryName': name}), 327 MessageKind.DUPLICATED_LIBRARY_NAME.error({'libraryName': name}),
328 api.Diagnostic.WARNING); 328 api.Diagnostic.VERBOSE_INFO);
329 } 329 }
330 } 330 }
331 } 331 }
332 332
333 bool isDartCore(Uri uri) => uri.scheme == "dart" && uri.path == "core"; 333 bool isDartCore(Uri uri) => uri.scheme == "dart" && uri.path == "core";
334 334
335 /** 335 /**
336 * Lazily loads and returns the [LibraryElement] for the dart:core library. 336 * Lazily loads and returns the [LibraryElement] for the dart:core library.
337 */ 337 */
338 LibraryElement loadCoreLibrary(LibraryDependencyHandler handler) { 338 LibraryElement loadCoreLibrary(LibraryDependencyHandler handler) {
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 } 831 }
832 832
833 /** 833 /**
834 * Registers all top-level entities of [library] as starting point for the 834 * Registers all top-level entities of [library] as starting point for the
835 * fixed-point computation of the import/export scopes. 835 * fixed-point computation of the import/export scopes.
836 */ 836 */
837 void registerLibraryExports(LibraryElement library) { 837 void registerLibraryExports(LibraryElement library) {
838 nodeMap[library].registerInitialExports(); 838 nodeMap[library].registerInitialExports();
839 } 839 }
840 } 840 }
OLDNEW
« no previous file with comments | « pkg/webdriver/lib/webdriver.dart ('k') | sdk/lib/_internal/compiler/implementation/source_file_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698