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

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

Issue 913513003: Handle exception while getting modification stamp (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/java_io.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 // 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; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 * not known. The line information is used to map offsets from the beginning o f the source to line 708 * not known. The line information is used to map offsets from the beginning o f the source to line
709 * and column pairs. 709 * and column pairs.
710 * 710 *
711 * @param source the source whose line information is to be returned 711 * @param source the source whose line information is to be returned
712 * @return the line information for the given source 712 * @return the line information for the given source
713 * See [computeLineInfo]. 713 * See [computeLineInfo].
714 */ 714 */
715 LineInfo getLineInfo(Source source); 715 LineInfo getLineInfo(Source source);
716 716
717 /** 717 /**
718 * Return the modification stamp for the given source. A modification stamp is a non-negative 718 * Return the modification stamp for the [source], or a negative value if the
719 * integer with the property that if the contents of the source have not been modified since the 719 * source does not exist. A modification stamp is a non-negative integer with
720 * last time the modification stamp was accessed then the same value will be r eturned, but if the 720 * the property that if the contents of the source have not been modified
721 * contents of the source have been modified one or more times (even if the ne t change is zero) 721 * since the last time the modification stamp was accessed then the same value
722 * the stamps will be different. 722 * will be returned, but if the contents of the source have been modified one
723 * or more times (even if the net change is zero) the stamps will be different .
723 * 724 *
724 * This method should be used rather than the method [Source.getModificationSt amp] because 725 * This method should be used rather than the method
725 * contexts can have local overrides of the content of a source that the sourc e is not aware of. 726 * [Source.getModificationStamp] because contexts can have local overrides of
726 * 727 * the content of a source that the source is not aware of.
727 * @param source the source whose modification stamp is to be returned
728 * @return the modification stamp for the source
729 */ 728 */
730 int getModificationStamp(Source source); 729 int getModificationStamp(Source source);
731 730
732 /** 731 /**
733 * Return a fully resolved AST for a single compilation unit within the given library, or 732 * Return a fully resolved AST for a single compilation unit within the given library, or
734 * `null` if the resolved AST is not already computed. 733 * `null` if the resolved AST is not already computed.
735 * 734 *
736 * @param unitSource the source of the compilation unit 735 * @param unitSource the source of the compilation unit
737 * @param library the library containing the compilation unit 736 * @param library the library containing the compilation unit
738 * @return a fully resolved AST for the compilation unit 737 * @return a fully resolved AST for the compilation unit
(...skipping 11632 matching lines...) Expand 10 before | Expand all | Expand 10 after
12371 if (element.id == _id) { 12370 if (element.id == _id) {
12372 result = element; 12371 result = element;
12373 throw new _ElementByIdFinderException(); 12372 throw new _ElementByIdFinderException();
12374 } 12373 }
12375 super.visitElement(element); 12374 super.visitElement(element);
12376 } 12375 }
12377 } 12376 }
12378 12377
12379 class _ElementByIdFinderException { 12378 class _ElementByIdFinderException {
12380 } 12379 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/java_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698