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

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

Issue 131233009: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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) 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.source; 8 library engine.source;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 */ 448 */
449 Source resolveRelative(Uri relativeUri); 449 Source resolveRelative(Uri relativeUri);
450 } 450 }
451 451
452 /** 452 /**
453 * The interface `ContentReceiver` defines the behavior of objects that can rece ive the 453 * The interface `ContentReceiver` defines the behavior of objects that can rece ive the
454 * content of a source. 454 * content of a source.
455 */ 455 */
456 abstract class Source_ContentReceiver { 456 abstract class Source_ContentReceiver {
457 /** 457 /**
458 * Accept the contents of a source represented as a character buffer. 458 * Accept the contents of a source.
459 * 459 *
460 * @param contents the contents of the source 460 * @param contents the contents of the source
461 * @param modificationTime the time at which the contents were last set 461 * @param modificationTime the time at which the contents were last set
462 */ 462 */
463 void accept(CharBuffer contents, int modificationTime); 463 void accept(CharSequence contents, int modificationTime);
Brian Wilkerson 2014/02/06 14:59:15 Any chance we could just translate CharSequence to
464
465 /**
466 * Accept the contents of a source represented as a string.
467 *
468 * @param contents the contents of the source
469 * @param modificationTime the time at which the contents were last set
470 */
471 void accept2(String contents, int modificationTime);
472 } 464 }
473 465
474 /** 466 /**
475 * The enumeration `SourceKind` defines the different kinds of sources that are known to the 467 * The enumeration `SourceKind` defines the different kinds of sources that are known to the
476 * analysis engine. 468 * analysis engine.
477 * 469 *
478 * @coverage dart.engine.source 470 * @coverage dart.engine.source
479 */ 471 */
480 class SourceKind extends Enum<SourceKind> { 472 class SourceKind extends Enum<SourceKind> {
481 /** 473 /**
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 int oldStamp = javaMapPut(_stampMap, source, newStamp); 891 int oldStamp = javaMapPut(_stampMap, source, newStamp);
900 // Occasionally, if this method is called in rapid succession, the timesta mps are equal. 892 // Occasionally, if this method is called in rapid succession, the timesta mps are equal.
901 // Guard against this by artificially incrementing the new timestamp 893 // Guard against this by artificially incrementing the new timestamp
902 if (newStamp == oldStamp) { 894 if (newStamp == oldStamp) {
903 _stampMap[source] = newStamp + 1; 895 _stampMap[source] = newStamp + 1;
904 } 896 }
905 return javaMapPut(_contentMap, source, contents); 897 return javaMapPut(_contentMap, source, contents);
906 } 898 }
907 } 899 }
908 } 900 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698