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

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

Issue 348673002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 'dart:collection'; 10 import 'dart:collection';
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 * A 'dart:' URI. 781 * A 'dart:' URI.
782 */ 782 */
783 static const UriKind DART_URI = const UriKind('DART_URI', 0, 0x64); 783 static const UriKind DART_URI = const UriKind('DART_URI', 0, 0x64);
784 784
785 /** 785 /**
786 * A 'file:' URI. 786 * A 'file:' URI.
787 */ 787 */
788 static const UriKind FILE_URI = const UriKind('FILE_URI', 1, 0x66); 788 static const UriKind FILE_URI = const UriKind('FILE_URI', 1, 0x66);
789 789
790 /** 790 /**
791 * A 'package:' URI referencing source package itself.
792 */
793 static const UriKind PACKAGE_SELF_URI = const UriKind('PACKAGE_SELF_URI', 2, 0 x73);
794
795 /**
796 * A 'package:' URI. 791 * A 'package:' URI.
797 */ 792 */
798 static const UriKind PACKAGE_URI = const UriKind('PACKAGE_URI', 3, 0x70); 793 static const UriKind PACKAGE_URI = const UriKind('PACKAGE_URI', 2, 0x70);
799 794
800 static const List<UriKind> values = const [DART_URI, FILE_URI, PACKAGE_SELF_UR I, PACKAGE_URI]; 795 static const List<UriKind> values = const [DART_URI, FILE_URI, PACKAGE_URI];
801 796
802 /** 797 /**
803 * Return the URI kind represented by the given encoding, or `null` if there i s no kind with 798 * Return the URI kind represented by the given encoding, or `null` if there i s no kind with
804 * the given encoding. 799 * the given encoding.
805 * 800 *
806 * @param encoding the single character encoding used to identify the URI kind to be returned 801 * @param encoding the single character encoding used to identify the URI kind to be returned
807 * @return the URI kind represented by the given encoding 802 * @return the URI kind represented by the given encoding
808 */ 803 */
809 static UriKind fromEncoding(int encoding) { 804 static UriKind fromEncoding(int encoding) {
810 while (true) { 805 while (true) {
811 if (encoding == 0x64) { 806 if (encoding == 0x64) {
812 return DART_URI; 807 return DART_URI;
813 } else if (encoding == 0x66) { 808 } else if (encoding == 0x66) {
814 return FILE_URI; 809 return FILE_URI;
815 } else if (encoding == 0x73) {
816 return PACKAGE_SELF_URI;
817 } else if (encoding == 0x70) { 810 } else if (encoding == 0x70) {
818 return PACKAGE_URI; 811 return PACKAGE_URI;
819 } 812 }
820 break; 813 break;
821 } 814 }
822 return null; 815 return null;
823 } 816 }
824 817
825 /** 818 /**
826 * The single character encoding used to identify this kind of URI. 819 * The single character encoding used to identify this kind of URI.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 860
868 /** 861 /**
869 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot 862 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot
870 * be computed. 863 * be computed.
871 * 864 *
872 * @param source the source to get URI for 865 * @param source the source to get URI for
873 * @return the absolute URI representing the given source 866 * @return the absolute URI representing the given source
874 */ 867 */
875 Uri restoreAbsolute(Source source) => null; 868 Uri restoreAbsolute(Source source) => null;
876 } 869 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698