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

Side by Side Diff: pkg/analyzer/lib/src/generated/java_core.dart

Issue 1994243002: Dangling comment reference cleanup in analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/error.dart ('k') | pkg/analyzer/lib/src/summary/idl.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analyzer.src.generated.java_core; 5 library analyzer.src.generated.java_core;
6 6
7 final Stopwatch nanoTimeStopwatch = new Stopwatch(); 7 final Stopwatch nanoTimeStopwatch = new Stopwatch();
8 8
9 /** 9 /**
10 * Inserts the given arguments into [pattern]. 10 * Inserts the given arguments into [pattern].
11 * 11 *
12 * format('Hello, {0}!', 'John') = 'Hello, John!' 12 * format('Hello, {0}!', 'John') = 'Hello, John!'
13 * format('{0} are you {1}ing?', 'How', 'do') = 'How are you doing?' 13 * format('{0} are you {1}ing?', 'How', 'do') = 'How are you doing?'
14 * format('{0} are you {1}ing?', 'What', 'read') = 'What are you reading?' 14 * format('{0} are you {1}ing?', 'What', 'read') = 'What are you reading?'
15 */ 15 */
16 String format(String pattern, 16 String format(String pattern,
17 [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7]) { 17 [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7]) {
18 // TODO(rnystrom): This is not used by analyzer, but is called by 18 // TODO(rnystrom): This is not used by analyzer, but is called by
19 // analysis_server. Move this code there and remove it from here. 19 // analysis_server. Move this code there and remove it from here.
20 return formatList(pattern, [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7]); 20 return formatList(pattern, [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7]);
21 } 21 }
22 22
23 /** 23 /**
24 * Inserts the given [args] into [pattern]. 24 * Inserts the given [arguments] into [pattern].
25 * 25 *
26 * format('Hello, {0}!', ['John']) = 'Hello, John!' 26 * format('Hello, {0}!', ['John']) = 'Hello, John!'
27 * format('{0} are you {1}ing?', ['How', 'do']) = 'How are you doing?' 27 * format('{0} are you {1}ing?', ['How', 'do']) = 'How are you doing?'
28 * format('{0} are you {1}ing?', ['What', 'read']) = 'What are you reading?' 28 * format('{0} are you {1}ing?', ['What', 'read']) = 'What are you reading?'
29 */ 29 */
30 String formatList(String pattern, List<Object> arguments) { 30 String formatList(String pattern, List<Object> arguments) {
31 if (arguments == null || arguments.isEmpty) { 31 if (arguments == null || arguments.isEmpty) {
32 assert(!pattern.contains(new RegExp(r'\{(\d+)\}'))); 32 assert(!pattern.contains(new RegExp(r'\{(\d+)\}')));
33 return pattern; 33 return pattern;
34 } 34 }
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 class UnsupportedOperationException extends JavaException { 368 class UnsupportedOperationException extends JavaException {
369 UnsupportedOperationException([message = ""]) : super(message); 369 UnsupportedOperationException([message = ""]) : super(message);
370 } 370 }
371 371
372 class URISyntaxException implements Exception { 372 class URISyntaxException implements Exception {
373 final String message; 373 final String message;
374 URISyntaxException(this.message); 374 URISyntaxException(this.message);
375 String toString() => "URISyntaxException: $message"; 375 String toString() => "URISyntaxException: $message";
376 } 376 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/error.dart ('k') | pkg/analyzer/lib/src/summary/idl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698