| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine; | 3 library engine; |
| 4 import 'dart:collection' show HasNextIterator; | 4 import 'dart:collection' show HasNextIterator; |
| 5 import 'java_core.dart'; | 5 import 'java_core.dart'; |
| 6 import 'java_engine.dart'; | 6 import 'java_engine.dart'; |
| 7 import 'instrumentation.dart'; | 7 import 'instrumentation.dart'; |
| 8 import 'error.dart'; | 8 import 'error.dart'; |
| 9 import 'source.dart'; | 9 import 'source.dart'; |
| 10 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; | 10 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 * The interface {@code DartEntry} defines the behavior of objects that maintain
the information | 704 * The interface {@code DartEntry} defines the behavior of objects that maintain
the information |
| 705 * cached by an analysis context about an individual Dart file. | 705 * cached by an analysis context about an individual Dart file. |
| 706 * @coverage dart.engine | 706 * @coverage dart.engine |
| 707 */ | 707 */ |
| 708 abstract class DartEntry implements SourceEntry { | 708 abstract class DartEntry implements SourceEntry { |
| 709 | 709 |
| 710 /** | 710 /** |
| 711 * The data descriptor representing the library element for the library. This
data is only | 711 * The data descriptor representing the library element for the library. This
data is only |
| 712 * available for Dart files that are the defining compilation unit of a librar
y. | 712 * available for Dart files that are the defining compilation unit of a librar
y. |
| 713 */ | 713 */ |
| 714 static DataDescriptor<LibraryElement> ELEMENT = new DataDescriptor<LibraryElem
ent>("DartEntry.ELEMENT"); | 714 static final DataDescriptor<LibraryElement> ELEMENT = new DataDescriptor<Libra
ryElement>("DartEntry.ELEMENT"); |
| 715 | 715 |
| 716 /** | 716 /** |
| 717 * The data descriptor representing the list of referenced libraries. This dat
a is only available | 717 * The data descriptor representing the list of referenced libraries. This dat
a is only available |
| 718 * for Dart files that are the defining compilation unit of a library. | 718 * for Dart files that are the defining compilation unit of a library. |
| 719 */ | 719 */ |
| 720 static DataDescriptor<List<Source>> REFERENCED_LIBRARIES = new DataDescriptor<
List<Source>>("DartEntry.REFERENCED_LIBRARIES"); | 720 static final DataDescriptor<List<Source>> REFERENCED_LIBRARIES = new DataDescr
iptor<List<Source>>("DartEntry.REFERENCED_LIBRARIES"); |
| 721 | 721 |
| 722 /** | 722 /** |
| 723 * The data descriptor representing the list of included parts. This data is o
nly available for | 723 * The data descriptor representing the list of included parts. This data is o
nly available for |
| 724 * Dart files that are the defining compilation unit of a library. | 724 * Dart files that are the defining compilation unit of a library. |
| 725 */ | 725 */ |
| 726 static DataDescriptor<List<Source>> INCLUDED_PARTS = new DataDescriptor<List<S
ource>>("DartEntry.INCLUDED_PARTS"); | 726 static final DataDescriptor<List<Source>> INCLUDED_PARTS = new DataDescriptor<
List<Source>>("DartEntry.INCLUDED_PARTS"); |
| 727 | 727 |
| 728 /** | 728 /** |
| 729 * The data descriptor representing the client flag. This data is only availab
le for Dart files | 729 * The data descriptor representing the client flag. This data is only availab
le for Dart files |
| 730 * that are the defining compilation unit of a library. | 730 * that are the defining compilation unit of a library. |
| 731 */ | 731 */ |
| 732 static DataDescriptor<bool> IS_CLIENT = new DataDescriptor<bool>("DartEntry.IS
_CLIENT"); | 732 static final DataDescriptor<bool> IS_CLIENT = new DataDescriptor<bool>("DartEn
try.IS_CLIENT"); |
| 733 | 733 |
| 734 /** | 734 /** |
| 735 * The data descriptor representing the launchable flag. This data is only ava
ilable for Dart | 735 * The data descriptor representing the launchable flag. This data is only ava
ilable for Dart |
| 736 * files that are the defining compilation unit of a library. | 736 * files that are the defining compilation unit of a library. |
| 737 */ | 737 */ |
| 738 static DataDescriptor<bool> IS_LAUNCHABLE = new DataDescriptor<bool>("DartEntr
y.IS_LAUNCHABLE"); | 738 static final DataDescriptor<bool> IS_LAUNCHABLE = new DataDescriptor<bool>("Da
rtEntry.IS_LAUNCHABLE"); |
| 739 | 739 |
| 740 /** | 740 /** |
| 741 * The data descriptor representing the errors resulting from parsing the sour
ce. | 741 * The data descriptor representing the errors resulting from parsing the sour
ce. |
| 742 */ | 742 */ |
| 743 static DataDescriptor<List<AnalysisError>> PARSE_ERRORS = new DataDescriptor<L
ist<AnalysisError>>("DartEntry.PARSE_ERRORS"); | 743 static final DataDescriptor<List<AnalysisError>> PARSE_ERRORS = new DataDescri
ptor<List<AnalysisError>>("DartEntry.PARSE_ERRORS"); |
| 744 | 744 |
| 745 /** | 745 /** |
| 746 * The data descriptor representing the parsed AST structure. | 746 * The data descriptor representing the parsed AST structure. |
| 747 */ | 747 */ |
| 748 static DataDescriptor<CompilationUnit> PARSED_UNIT = new DataDescriptor<Compil
ationUnit>("DartEntry.PARSED_UNIT"); | 748 static final DataDescriptor<CompilationUnit> PARSED_UNIT = new DataDescriptor<
CompilationUnit>("DartEntry.PARSED_UNIT"); |
| 749 | 749 |
| 750 /** | 750 /** |
| 751 * The data descriptor representing the public namespace of the library. This
data is only | 751 * The data descriptor representing the public namespace of the library. This
data is only |
| 752 * available for Dart files that are the defining compilation unit of a librar
y. | 752 * available for Dart files that are the defining compilation unit of a librar
y. |
| 753 */ | 753 */ |
| 754 static DataDescriptor<Namespace> PUBLIC_NAMESPACE = new DataDescriptor<Namespa
ce>("DartEntry.PUBLIC_NAMESPACE"); | 754 static final DataDescriptor<Namespace> PUBLIC_NAMESPACE = new DataDescriptor<N
amespace>("DartEntry.PUBLIC_NAMESPACE"); |
| 755 | 755 |
| 756 /** | 756 /** |
| 757 * The data descriptor representing the errors resulting from resolving the so
urce. | 757 * The data descriptor representing the errors resulting from resolving the so
urce. |
| 758 */ | 758 */ |
| 759 static DataDescriptor<List<AnalysisError>> RESOLUTION_ERRORS = new DataDescrip
tor<List<AnalysisError>>("DartEntry.RESOLUTION_ERRORS"); | 759 static final DataDescriptor<List<AnalysisError>> RESOLUTION_ERRORS = new DataD
escriptor<List<AnalysisError>>("DartEntry.RESOLUTION_ERRORS"); |
| 760 | 760 |
| 761 /** | 761 /** |
| 762 * The data descriptor representing the resolved AST structure. | 762 * The data descriptor representing the resolved AST structure. |
| 763 */ | 763 */ |
| 764 static DataDescriptor<CompilationUnit> RESOLVED_UNIT = new DataDescriptor<Comp
ilationUnit>("DartEntry.RESOLVED_UNIT"); | 764 static final DataDescriptor<CompilationUnit> RESOLVED_UNIT = new DataDescripto
r<CompilationUnit>("DartEntry.RESOLVED_UNIT"); |
| 765 | 765 |
| 766 /** | 766 /** |
| 767 * The data descriptor representing the source kind. | 767 * The data descriptor representing the source kind. |
| 768 */ | 768 */ |
| 769 static DataDescriptor<SourceKind> SOURCE_KIND = new DataDescriptor<SourceKind>
("DartEntry.SOURCE_KIND"); | 769 static final DataDescriptor<SourceKind> SOURCE_KIND = new DataDescriptor<Sourc
eKind>("DartEntry.SOURCE_KIND"); |
| 770 | 770 |
| 771 /** | 771 /** |
| 772 * Return all of the errors associated with the compilation unit that are curr
ently cached. | 772 * Return all of the errors associated with the compilation unit that are curr
ently cached. |
| 773 * @return all of the errors associated with the compilation unit | 773 * @return all of the errors associated with the compilation unit |
| 774 */ | 774 */ |
| 775 List<AnalysisError> get allErrors; | 775 List<AnalysisError> get allErrors; |
| 776 | 776 |
| 777 /** | 777 /** |
| 778 * Return a valid parsed compilation unit, either an unresolved AST structure
or the result of | 778 * Return a valid parsed compilation unit, either an unresolved AST structure
or the result of |
| 779 * resolving the AST structure in the context of some library, or {@code null}
if there is no | 779 * resolving the AST structure in the context of some library, or {@code null}
if there is no |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 /** | 1465 /** |
| 1466 * The interface {@code HtmlEntry} defines the behavior of objects that maintain
the information | 1466 * The interface {@code HtmlEntry} defines the behavior of objects that maintain
the information |
| 1467 * cached by an analysis context about an individual HTML file. | 1467 * cached by an analysis context about an individual HTML file. |
| 1468 * @coverage dart.engine | 1468 * @coverage dart.engine |
| 1469 */ | 1469 */ |
| 1470 abstract class HtmlEntry implements SourceEntry { | 1470 abstract class HtmlEntry implements SourceEntry { |
| 1471 | 1471 |
| 1472 /** | 1472 /** |
| 1473 * The data descriptor representing the HTML element. | 1473 * The data descriptor representing the HTML element. |
| 1474 */ | 1474 */ |
| 1475 static DataDescriptor<HtmlElement> ELEMENT = new DataDescriptor<HtmlElement>("
HtmlEntry.ELEMENT"); | 1475 static final DataDescriptor<HtmlElement> ELEMENT = new DataDescriptor<HtmlElem
ent>("HtmlEntry.ELEMENT"); |
| 1476 | 1476 |
| 1477 /** | 1477 /** |
| 1478 * The data descriptor representing the parsed AST structure. | 1478 * The data descriptor representing the parsed AST structure. |
| 1479 */ | 1479 */ |
| 1480 static DataDescriptor<HtmlUnit> PARSED_UNIT = new DataDescriptor<HtmlUnit>("Ht
mlEntry.PARSED_UNIT"); | 1480 static final DataDescriptor<HtmlUnit> PARSED_UNIT = new DataDescriptor<HtmlUni
t>("HtmlEntry.PARSED_UNIT"); |
| 1481 | 1481 |
| 1482 /** | 1482 /** |
| 1483 * The data descriptor representing the list of referenced libraries. | 1483 * The data descriptor representing the list of referenced libraries. |
| 1484 */ | 1484 */ |
| 1485 static DataDescriptor<List<Source>> REFERENCED_LIBRARIES = new DataDescriptor<
List<Source>>("HtmlEntry.REFERENCED_LIBRARIES"); | 1485 static final DataDescriptor<List<Source>> REFERENCED_LIBRARIES = new DataDescr
iptor<List<Source>>("HtmlEntry.REFERENCED_LIBRARIES"); |
| 1486 | 1486 |
| 1487 /** | 1487 /** |
| 1488 * The data descriptor representing the errors resulting from resolving the so
urce. | 1488 * The data descriptor representing the errors resulting from resolving the so
urce. |
| 1489 */ | 1489 */ |
| 1490 static DataDescriptor<List<AnalysisError>> RESOLUTION_ERRORS = new DataDescrip
tor<List<AnalysisError>>("HtmlEntry.RESOLUTION_ERRORS"); | 1490 static final DataDescriptor<List<AnalysisError>> RESOLUTION_ERRORS = new DataD
escriptor<List<AnalysisError>>("HtmlEntry.RESOLUTION_ERRORS"); |
| 1491 | 1491 |
| 1492 /** | 1492 /** |
| 1493 * The data descriptor representing the resolved AST structure. | 1493 * The data descriptor representing the resolved AST structure. |
| 1494 */ | 1494 */ |
| 1495 static DataDescriptor<HtmlUnit> RESOLVED_UNIT = new DataDescriptor<HtmlUnit>("
HtmlEntry.RESOLVED_UNIT"); | 1495 static final DataDescriptor<HtmlUnit> RESOLVED_UNIT = new DataDescriptor<HtmlU
nit>("HtmlEntry.RESOLVED_UNIT"); |
| 1496 | 1496 |
| 1497 /** | 1497 /** |
| 1498 * Return all of the errors associated with the compilation unit that are curr
ently cached. | 1498 * Return all of the errors associated with the compilation unit that are curr
ently cached. |
| 1499 * @return all of the errors associated with the compilation unit | 1499 * @return all of the errors associated with the compilation unit |
| 1500 */ | 1500 */ |
| 1501 List<AnalysisError> get allErrors; | 1501 List<AnalysisError> get allErrors; |
| 1502 HtmlEntryImpl get writableCopy; | 1502 HtmlEntryImpl get writableCopy; |
| 1503 } | 1503 } |
| 1504 /** | 1504 /** |
| 1505 * Instances of the class {@code HtmlEntryImpl} implement an {@link HtmlEntry}. | 1505 * Instances of the class {@code HtmlEntryImpl} implement an {@link HtmlEntry}. |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 * <p> | 1663 * <p> |
| 1664 * Source entries should be treated as if they were immutable unless a writable
copy of the entry | 1664 * Source entries should be treated as if they were immutable unless a writable
copy of the entry |
| 1665 * has been obtained and has not yet been made visible to other threads. | 1665 * has been obtained and has not yet been made visible to other threads. |
| 1666 * @coverage dart.engine | 1666 * @coverage dart.engine |
| 1667 */ | 1667 */ |
| 1668 abstract class SourceEntry { | 1668 abstract class SourceEntry { |
| 1669 | 1669 |
| 1670 /** | 1670 /** |
| 1671 * The data descriptor representing the line information. | 1671 * The data descriptor representing the line information. |
| 1672 */ | 1672 */ |
| 1673 static DataDescriptor<LineInfo> LINE_INFO = new DataDescriptor<LineInfo>("Sour
ceEntry.LINE_INFO"); | 1673 static final DataDescriptor<LineInfo> LINE_INFO = new DataDescriptor<LineInfo>
("SourceEntry.LINE_INFO"); |
| 1674 | 1674 |
| 1675 /** | 1675 /** |
| 1676 * Return the kind of the source, or {@code null} if the kind is not currently
cached. | 1676 * Return the kind of the source, or {@code null} if the kind is not currently
cached. |
| 1677 * @return the kind of the source | 1677 * @return the kind of the source |
| 1678 */ | 1678 */ |
| 1679 SourceKind get kind; | 1679 SourceKind get kind; |
| 1680 | 1680 |
| 1681 /** | 1681 /** |
| 1682 * Return the most recent time at which the state of the source matched the st
ate represented by | 1682 * Return the most recent time at which the state of the source matched the st
ate represented by |
| 1683 * this entry. | 1683 * this entry. |
| (...skipping 2712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4396 } | 4396 } |
| 4397 } | 4397 } |
| 4398 /** | 4398 /** |
| 4399 * The interface {@code Logger} defines the behavior of objects that can be used
to receive | 4399 * The interface {@code Logger} defines the behavior of objects that can be used
to receive |
| 4400 * information about errors within the analysis engine. Implementations usually
write this | 4400 * information about errors within the analysis engine. Implementations usually
write this |
| 4401 * information to a file, but can also record the information for later use (suc
h as during testing) | 4401 * information to a file, but can also record the information for later use (suc
h as during testing) |
| 4402 * or even ignore the information. | 4402 * or even ignore the information. |
| 4403 * @coverage dart.engine.utilities | 4403 * @coverage dart.engine.utilities |
| 4404 */ | 4404 */ |
| 4405 abstract class Logger { | 4405 abstract class Logger { |
| 4406 static Logger NULL = new Logger_NullLogger(); | 4406 static final Logger NULL = new Logger_NullLogger(); |
| 4407 | 4407 |
| 4408 /** | 4408 /** |
| 4409 * Log the given message as an error. | 4409 * Log the given message as an error. |
| 4410 * @param message an explanation of why the error occurred or what it means | 4410 * @param message an explanation of why the error occurred or what it means |
| 4411 */ | 4411 */ |
| 4412 void logError(String message); | 4412 void logError(String message); |
| 4413 | 4413 |
| 4414 /** | 4414 /** |
| 4415 * Log the given exception as one representing an error. | 4415 * Log the given exception as one representing an error. |
| 4416 * @param message an explanation of why the error occurred or what it means | 4416 * @param message an explanation of why the error occurred or what it means |
| (...skipping 29 matching lines...) Expand all Loading... |
| 4446 } | 4446 } |
| 4447 void logError2(String message, Exception exception) { | 4447 void logError2(String message, Exception exception) { |
| 4448 } | 4448 } |
| 4449 void logError3(Exception exception) { | 4449 void logError3(Exception exception) { |
| 4450 } | 4450 } |
| 4451 void logInformation(String message) { | 4451 void logInformation(String message) { |
| 4452 } | 4452 } |
| 4453 void logInformation2(String message, Exception exception) { | 4453 void logInformation2(String message, Exception exception) { |
| 4454 } | 4454 } |
| 4455 } | 4455 } |
| OLD | NEW |