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

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

Issue 11417058: Revert "Remove NullPointerException." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/core_patch.dart » ('j') | 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) 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 library compiler; 5 library compiler;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 import 'implementation/apiimpl.dart'; 8 import 'implementation/apiimpl.dart';
9 9
10 // Unless explicitly allowed, passing [:null:] for any argument to the 10 // Unless explicitly allowed, passing [:null:] for any argument to the
11 // methods of library will result in an Error being thrown. 11 // methods of library will result in a NullPointerException being
12 // thrown.
12 13
13 /** 14 /**
14 * Returns a future that completes to the source corresponding to 15 * Returns a future that completes to the source corresponding to
15 * [uri]. If an exception occurs, the future completes with this 16 * [uri]. If an exception occurs, the future completes with this
16 * exception. 17 * exception.
17 */ 18 */
18 typedef Future<String> ReadStringFromUri(Uri uri); 19 typedef Future<String> ReadStringFromUri(Uri uri);
19 20
20 /** 21 /**
21 * Invoked by the compiler to report diagnostics. If [uri] is 22 * Invoked by the compiler to report diagnostics. If [uri] is
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 final String name; 118 final String name;
118 119
119 /** 120 /**
120 * This constructor is not private to support user-defined 121 * This constructor is not private to support user-defined
121 * diagnostic kinds. 122 * diagnostic kinds.
122 */ 123 */
123 const Diagnostic(this.ordinal, this.name); 124 const Diagnostic(this.ordinal, this.name);
124 125
125 String toString() => name; 126 String toString() => name;
126 } 127 }
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698