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

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

Issue 200583002: Analyzer snapshot with disabled 'this.field' generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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) 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 return PACKAGE_URI; 489 return PACKAGE_URI;
490 } 490 }
491 break; 491 break;
492 } 492 }
493 return null; 493 return null;
494 } 494 }
495 495
496 /** 496 /**
497 * The single character encoding used to identify this kind of URI. 497 * The single character encoding used to identify this kind of URI.
498 */ 498 */
499 final int encoding; 499 int encoding = 0;
500 500
501 /** 501 /**
502 * Initialize a newly created URI kind to have the given encoding. 502 * Initialize a newly created URI kind to have the given encoding.
503 * 503 *
504 * @param encoding the single character encoding used to identify this kind of URI. 504 * @param encoding the single character encoding used to identify this kind of URI.
505 */ 505 */
506 UriKind(String name, int ordinal, this.encoding) : super(name, ordinal); 506 UriKind(String name, int ordinal, int encoding) : super(name, ordinal) {
507 this.encoding = encoding;
508 }
507 } 509 }
508 510
509 /** 511 /**
510 * A source range defines an [Element]'s source coordinates relative to its [Sou rce]. 512 * A source range defines an [Element]'s source coordinates relative to its [Sou rce].
511 */ 513 */
512 class SourceRange { 514 class SourceRange {
513 /** 515 /**
514 * An empty [SourceRange] with offset `0` and length `0`. 516 * An empty [SourceRange] with offset `0` and length `0`.
515 */ 517 */
516 static SourceRange EMPTY = new SourceRange(0, 0); 518 static SourceRange EMPTY = new SourceRange(0, 0);
517 519
518 /** 520 /**
519 * The 0-based index of the first character of the source code for this elemen t, relative to the 521 * The 0-based index of the first character of the source code for this elemen t, relative to the
520 * source buffer in which this element is contained. 522 * source buffer in which this element is contained.
521 */ 523 */
522 final int offset; 524 int offset = 0;
523 525
524 /** 526 /**
525 * The number of characters of the source code for this element, relative to t he source buffer in 527 * The number of characters of the source code for this element, relative to t he source buffer in
526 * which this element is contained. 528 * which this element is contained.
527 */ 529 */
528 final int length; 530 int length = 0;
529 531
530 /** 532 /**
531 * Initialize a newly created source range using the given offset and the give n length. 533 * Initialize a newly created source range using the given offset and the give n length.
532 * 534 *
533 * @param offset the given offset 535 * @param offset the given offset
534 * @param length the given length 536 * @param length the given length
535 */ 537 */
536 SourceRange(this.offset, this.length); 538 SourceRange(int offset, int length) {
539 this.offset = offset;
540 this.length = length;
541 }
537 542
538 /** 543 /**
539 * @return `true` if <code>x</code> is in [offset, offset + length) interval. 544 * @return `true` if <code>x</code> is in [offset, offset + length) interval.
540 */ 545 */
541 bool contains(int x) => offset <= x && x < offset + length; 546 bool contains(int x) => offset <= x && x < offset + length;
542 547
543 /** 548 /**
544 * @return `true` if <code>x</code> is in (offset, offset + length) interval. 549 * @return `true` if <code>x</code> is in (offset, offset + length) interval.
545 */ 550 */
546 bool containsExclusive(int x) => offset < x && x < offset + length; 551 bool containsExclusive(int x) => offset < x && x < offset + length;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 } 751 }
747 752
748 /** 753 /**
749 * Instances of the class `Location` represent the location of a character as a line and 754 * Instances of the class `Location` represent the location of a character as a line and
750 * column pair. 755 * column pair.
751 */ 756 */
752 class LineInfo_Location { 757 class LineInfo_Location {
753 /** 758 /**
754 * The one-based index of the line containing the character. 759 * The one-based index of the line containing the character.
755 */ 760 */
756 final int lineNumber; 761 int lineNumber = 0;
757 762
758 /** 763 /**
759 * The one-based index of the column containing the character. 764 * The one-based index of the column containing the character.
760 */ 765 */
761 final int columnNumber; 766 int columnNumber = 0;
762 767
763 /** 768 /**
764 * Initialize a newly created location to represent the location of the charac ter at the given 769 * Initialize a newly created location to represent the location of the charac ter at the given
765 * line and column position. 770 * line and column position.
766 * 771 *
767 * @param lineNumber the one-based index of the line containing the character 772 * @param lineNumber the one-based index of the line containing the character
768 * @param columnNumber the one-based index of the column containing the charac ter 773 * @param columnNumber the one-based index of the column containing the charac ter
769 */ 774 */
770 LineInfo_Location(this.lineNumber, this.columnNumber); 775 LineInfo_Location(int lineNumber, int columnNumber) {
776 this.lineNumber = lineNumber;
777 this.columnNumber = columnNumber;
778 }
771 } 779 }
772 780
773 /** 781 /**
774 * Instances of class `ContentCache` hold content used to override the default c ontent of a 782 * Instances of class `ContentCache` hold content used to override the default c ontent of a
775 * [Source]. 783 * [Source].
776 */ 784 */
777 class ContentCache { 785 class ContentCache {
778 /** 786 /**
779 * A table mapping sources to the contents of those sources. This is used to o verride the default 787 * A table mapping sources to the contents of those sources. This is used to o verride the default
780 * contents of a source. 788 * contents of a source.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 int oldStamp = javaMapPut(_stampMap, source, newStamp); 837 int oldStamp = javaMapPut(_stampMap, source, newStamp);
830 // Occasionally, if this method is called in rapid succession, the timesta mps are equal. 838 // Occasionally, if this method is called in rapid succession, the timesta mps are equal.
831 // Guard against this by artificially incrementing the new timestamp 839 // Guard against this by artificially incrementing the new timestamp
832 if (newStamp == oldStamp) { 840 if (newStamp == oldStamp) {
833 _stampMap[source] = newStamp + 1; 841 _stampMap[source] = newStamp + 1;
834 } 842 }
835 return javaMapPut(_contentMap, source, contents); 843 return javaMapPut(_contentMap, source, contents);
836 } 844 }
837 } 845 }
838 } 846 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/utilities_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698