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

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

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed VM bugs. Created 8 years 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 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 a NullPointerException being 11 // methods of library will result in an Error being thrown.
12 // thrown.
13 12
14 /** 13 /**
15 * Returns a future that completes to the source corresponding to 14 * Returns a future that completes to the source corresponding to
16 * [uri]. If an exception occurs, the future completes with this 15 * [uri]. If an exception occurs, the future completes with this
17 * exception. 16 * exception.
18 */ 17 */
19 typedef Future<String> ReadStringFromUri(Uri uri); 18 typedef Future<String> ReadStringFromUri(Uri uri);
20 19
21 /** 20 /**
22 * Invoked by the compiler to report diagnostics. If [uri] is 21 * Invoked by the compiler to report diagnostics. If [uri] is
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 final String name; 117 final String name;
119 118
120 /** 119 /**
121 * This constructor is not private to support user-defined 120 * This constructor is not private to support user-defined
122 * diagnostic kinds. 121 * diagnostic kinds.
123 */ 122 */
124 const Diagnostic(this.ordinal, this.name); 123 const Diagnostic(this.ordinal, this.name);
125 124
126 String toString() => name; 125 String toString() => name;
127 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698