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

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

Issue 708263002: Clean up references in comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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; 8 library engine;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 * Return an array containing all of the errors associated with the given sour ce. If the errors 329 * Return an array containing all of the errors associated with the given sour ce. If the errors
330 * are not already known then the source will be analyzed in order to determin e the errors 330 * are not already known then the source will be analyzed in order to determin e the errors
331 * associated with it. 331 * associated with it.
332 * 332 *
333 * <b>Note:</b> This method cannot be used in an async environment. 333 * <b>Note:</b> This method cannot be used in an async environment.
334 * 334 *
335 * @param source the source whose errors are to be returned 335 * @param source the source whose errors are to be returned
336 * @return all of the errors associated with the given source 336 * @return all of the errors associated with the given source
337 * @throws AnalysisException if the errors could not be determined because the analysis could not 337 * @throws AnalysisException if the errors could not be determined because the analysis could not
338 * be performed 338 * be performed
339 * @see #getErrors(Source) 339 * See [getErrors].
340 */ 340 */
341 List<AnalysisError> computeErrors(Source source); 341 List<AnalysisError> computeErrors(Source source);
342 342
343 /** 343 /**
344 * Return the element model corresponding to the HTML file defined by the give n source. If the 344 * Return the element model corresponding to the HTML file defined by the give n source. If the
345 * element model does not yet exist it will be created. The process of creatin g an element model 345 * element model does not yet exist it will be created. The process of creatin g an element model
346 * for an HTML file can be long-running, depending on the size of the file and the number of 346 * for an HTML file can be long-running, depending on the size of the file and the number of
347 * libraries that are defined in it (via script tags) that also need to have a model built for 347 * libraries that are defined in it (via script tags) that also need to have a model built for
348 * them. 348 * them.
349 * 349 *
350 * <b>Note:</b> This method cannot be used in an async environment. 350 * <b>Note:</b> This method cannot be used in an async environment.
351 * 351 *
352 * @param source the source defining the HTML file whose element model is to b e returned 352 * @param source the source defining the HTML file whose element model is to b e returned
353 * @return the element model corresponding to the HTML file defined by the giv en source 353 * @return the element model corresponding to the HTML file defined by the giv en source
354 * @throws AnalysisException if the element model could not be determined beca use the analysis 354 * @throws AnalysisException if the element model could not be determined beca use the analysis
355 * could not be performed 355 * could not be performed
356 * @see #getHtmlElement(Source) 356 * See [getHtmlElement].
357 */ 357 */
358 HtmlElement computeHtmlElement(Source source); 358 HtmlElement computeHtmlElement(Source source);
359 359
360 /** 360 /**
361 * Return the kind of the given source, computing it's kind if it is not alrea dy known. Return 361 * Return the kind of the given source, computing it's kind if it is not alrea dy known. Return
362 * [SourceKind.UNKNOWN] if the source is not contained in this context. 362 * [SourceKind.UNKNOWN] if the source is not contained in this context.
363 * 363 *
364 * <b>Note:</b> This method cannot be used in an async environment. 364 * <b>Note:</b> This method cannot be used in an async environment.
365 * 365 *
366 * @param source the source whose kind is to be returned 366 * @param source the source whose kind is to be returned
367 * @return the kind of the given source 367 * @return the kind of the given source
368 * @see #getKindOf(Source) 368 * See [getKindOf].
369 */ 369 */
370 SourceKind computeKindOf(Source source); 370 SourceKind computeKindOf(Source source);
371 371
372 /** 372 /**
373 * Return the element model corresponding to the library defined by the given source. If the 373 * Return the element model corresponding to the library defined by the given source. If the
374 * element model does not yet exist it will be created. The process of creatin g an element model 374 * element model does not yet exist it will be created. The process of creatin g an element model
375 * for a library can long-running, depending on the size of the library and th e number of 375 * for a library can long-running, depending on the size of the library and th e number of
376 * libraries that are imported into it that also need to have a model built fo r them. 376 * libraries that are imported into it that also need to have a model built fo r them.
377 * 377 *
378 * <b>Note:</b> This method cannot be used in an async environment. 378 * <b>Note:</b> This method cannot be used in an async environment.
379 * 379 *
380 * @param source the source defining the library whose element model is to be returned 380 * @param source the source defining the library whose element model is to be returned
381 * @return the element model corresponding to the library defined by the given source 381 * @return the element model corresponding to the library defined by the given source
382 * @throws AnalysisException if the element model could not be determined beca use the analysis 382 * @throws AnalysisException if the element model could not be determined beca use the analysis
383 * could not be performed 383 * could not be performed
384 * @see #getLibraryElement(Source) 384 * See [getLibraryElement].
385 */ 385 */
386 LibraryElement computeLibraryElement(Source source); 386 LibraryElement computeLibraryElement(Source source);
387 387
388 /** 388 /**
389 * Return the line information for the given source, or `null` if the source i s not of a 389 * Return the line information for the given source, or `null` if the source i s not of a
390 * recognized kind (neither a Dart nor HTML file). If the line information was not previously 390 * recognized kind (neither a Dart nor HTML file). If the line information was not previously
391 * known it will be created. The line information is used to map offsets from the beginning of the 391 * known it will be created. The line information is used to map offsets from the beginning of the
392 * source to line and column pairs. 392 * source to line and column pairs.
393 * 393 *
394 * <b>Note:</b> This method cannot be used in an async environment. 394 * <b>Note:</b> This method cannot be used in an async environment.
395 * 395 *
396 * @param source the source whose line information is to be returned 396 * @param source the source whose line information is to be returned
397 * @return the line information for the given source 397 * @return the line information for the given source
398 * @throws AnalysisException if the line information could not be determined b ecause the analysis 398 * @throws AnalysisException if the line information could not be determined b ecause the analysis
399 * could not be performed 399 * could not be performed
400 * @see #getLineInfo(Source) 400 * See [getLineInfo].
401 */ 401 */
402 LineInfo computeLineInfo(Source source); 402 LineInfo computeLineInfo(Source source);
403 403
404 /** 404 /**
405 * Notifies the context that the client is going to stop using this context. 405 * Notifies the context that the client is going to stop using this context.
406 */ 406 */
407 void dispose(); 407 void dispose();
408 408
409 /** 409 /**
410 * Return `true` if the given source exists. 410 * Return `true` if the given source exists.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 Element getElement(ElementLocation location); 481 Element getElement(ElementLocation location);
482 482
483 /** 483 /**
484 * Return an analysis error info containing the array of all of the errors and the line info 484 * Return an analysis error info containing the array of all of the errors and the line info
485 * associated with the given source. The array of errors will be empty if the source is not known 485 * associated with the given source. The array of errors will be empty if the source is not known
486 * to this context or if there are no errors in the source. The errors contain ed in the array can 486 * to this context or if there are no errors in the source. The errors contain ed in the array can
487 * be incomplete. 487 * be incomplete.
488 * 488 *
489 * @param source the source whose errors are to be returned 489 * @param source the source whose errors are to be returned
490 * @return all of the errors associated with the given source and the line inf o 490 * @return all of the errors associated with the given source and the line inf o
491 * @see #computeErrors(Source) 491 * See [computeErrors].
492 */ 492 */
493 AnalysisErrorInfo getErrors(Source source); 493 AnalysisErrorInfo getErrors(Source source);
494 494
495 /** 495 /**
496 * Return the element model corresponding to the HTML file defined by the give n source, or 496 * Return the element model corresponding to the HTML file defined by the give n source, or
497 * `null` if the source does not represent an HTML file, the element represent ing the file 497 * `null` if the source does not represent an HTML file, the element represent ing the file
498 * has not yet been created, or the analysis of the HTML file failed for some reason. 498 * has not yet been created, or the analysis of the HTML file failed for some reason.
499 * 499 *
500 * @param source the source defining the HTML file whose element model is to b e returned 500 * @param source the source defining the HTML file whose element model is to b e returned
501 * @return the element model corresponding to the HTML file defined by the giv en source 501 * @return the element model corresponding to the HTML file defined by the giv en source
502 * @see #computeHtmlElement(Source) 502 * See [computeHtmlElement].
503 */ 503 */
504 HtmlElement getHtmlElement(Source source); 504 HtmlElement getHtmlElement(Source source);
505 505
506 /** 506 /**
507 * Return the sources for the HTML files that reference the given compilation unit. If the source 507 * Return the sources for the HTML files that reference the given compilation unit. If the source
508 * does not represent a Dart source or is not known to this context, the retur ned array will be 508 * does not represent a Dart source or is not known to this context, the retur ned array will be
509 * empty. The contents of the array can be incomplete. 509 * empty. The contents of the array can be incomplete.
510 * 510 *
511 * @param source the source referenced by the returned HTML files 511 * @param source the source referenced by the returned HTML files
512 * @return the sources for the HTML files that reference the given compilation unit 512 * @return the sources for the HTML files that reference the given compilation unit
513 */ 513 */
514 List<Source> getHtmlFilesReferencing(Source source); 514 List<Source> getHtmlFilesReferencing(Source source);
515 515
516 /** 516 /**
517 * Return an array containing all of the sources known to this context that re present HTML files. 517 * Return an array containing all of the sources known to this context that re present HTML files.
518 * The contents of the array can be incomplete. 518 * The contents of the array can be incomplete.
519 * 519 *
520 * @return the sources known to this context that represent HTML files 520 * @return the sources known to this context that represent HTML files
521 */ 521 */
522 List<Source> get htmlSources; 522 List<Source> get htmlSources;
523 523
524 /** 524 /**
525 * Return the kind of the given source, or `null` if the kind is not known to this context. 525 * Return the kind of the given source, or `null` if the kind is not known to this context.
526 * 526 *
527 * @param source the source whose kind is to be returned 527 * @param source the source whose kind is to be returned
528 * @return the kind of the given source 528 * @return the kind of the given source
529 * @see #computeKindOf(Source) 529 * See [computeKindOf].
530 */ 530 */
531 SourceKind getKindOf(Source source); 531 SourceKind getKindOf(Source source);
532 532
533 /** 533 /**
534 * Return an array containing all of the sources known to this context that re present the defining 534 * Return an array containing all of the sources known to this context that re present the defining
535 * compilation unit of a library that can be run within a browser. The sources that are returned 535 * compilation unit of a library that can be run within a browser. The sources that are returned
536 * represent libraries that have a 'main' method and are either referenced by an HTML file or 536 * represent libraries that have a 'main' method and are either referenced by an HTML file or
537 * import, directly or indirectly, a client-only library. The contents of the array can be 537 * import, directly or indirectly, a client-only library. The contents of the array can be
538 * incomplete. 538 * incomplete.
539 * 539 *
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 */ 604 */
605 List<Source> get librarySources; 605 List<Source> get librarySources;
606 606
607 /** 607 /**
608 * Return the line information for the given source, or `null` if the line inf ormation is 608 * Return the line information for the given source, or `null` if the line inf ormation is
609 * not known. The line information is used to map offsets from the beginning o f the source to line 609 * not known. The line information is used to map offsets from the beginning o f the source to line
610 * and column pairs. 610 * and column pairs.
611 * 611 *
612 * @param source the source whose line information is to be returned 612 * @param source the source whose line information is to be returned
613 * @return the line information for the given source 613 * @return the line information for the given source
614 * @see #computeLineInfo(Source) 614 * See [computeLineInfo].
615 */ 615 */
616 LineInfo getLineInfo(Source source); 616 LineInfo getLineInfo(Source source);
617 617
618 /** 618 /**
619 * Return the modification stamp for the given source. A modification stamp is a non-negative 619 * Return the modification stamp for the given source. A modification stamp is a non-negative
620 * integer with the property that if the contents of the source have not been modified since the 620 * integer with the property that if the contents of the source have not been modified since the
621 * last time the modification stamp was accessed then the same value will be r eturned, but if the 621 * last time the modification stamp was accessed then the same value will be r eturned, but if the
622 * contents of the source have been modified one or more times (even if the ne t change is zero) 622 * contents of the source have been modified one or more times (even if the ne t change is zero)
623 * the stamps will be different. 623 * the stamps will be different.
624 * 624 *
(...skipping 14 matching lines...) Expand all
639 */ 639 */
640 List<Source> get refactoringUnsafeSources; 640 List<Source> get refactoringUnsafeSources;
641 641
642 /** 642 /**
643 * Return a fully resolved AST for a single compilation unit within the given library, or 643 * Return a fully resolved AST for a single compilation unit within the given library, or
644 * `null` if the resolved AST is not already computed. 644 * `null` if the resolved AST is not already computed.
645 * 645 *
646 * @param unitSource the source of the compilation unit 646 * @param unitSource the source of the compilation unit
647 * @param library the library containing the compilation unit 647 * @param library the library containing the compilation unit
648 * @return a fully resolved AST for the compilation unit 648 * @return a fully resolved AST for the compilation unit
649 * @see #resolveCompilationUnit(Source, LibraryElement) 649 * See [resolveCompilationUnit].
650 */ 650 */
651 CompilationUnit getResolvedCompilationUnit(Source unitSource, LibraryElement l ibrary); 651 CompilationUnit getResolvedCompilationUnit(Source unitSource, LibraryElement l ibrary);
652 652
653 /** 653 /**
654 * Return a fully resolved AST for a single compilation unit within the given library, or 654 * Return a fully resolved AST for a single compilation unit within the given library, or
655 * `null` if the resolved AST is not already computed. 655 * `null` if the resolved AST is not already computed.
656 * 656 *
657 * @param unitSource the source of the compilation unit 657 * @param unitSource the source of the compilation unit
658 * @param librarySource the source of the defining compilation unit of the lib rary containing the 658 * @param librarySource the source of the defining compilation unit of the lib rary containing the
659 * compilation unit 659 * compilation unit
660 * @return a fully resolved AST for the compilation unit 660 * @return a fully resolved AST for the compilation unit
661 * @see #resolveCompilationUnit(Source, Source) 661 * See [resolveCompilationUnit].
662 */ 662 */
663 CompilationUnit getResolvedCompilationUnit2(Source unitSource, Source libraryS ource); 663 CompilationUnit getResolvedCompilationUnit2(Source unitSource, Source libraryS ource);
664 664
665 /** 665 /**
666 * Return a fully resolved HTML unit, or `null` if the resolved unit is not al ready 666 * Return a fully resolved HTML unit, or `null` if the resolved unit is not al ready
667 * computed. 667 * computed.
668 * 668 *
669 * @param htmlSource the source of the HTML unit 669 * @param htmlSource the source of the HTML unit
670 * @return a fully resolved HTML unit 670 * @return a fully resolved HTML unit
671 * @see #resolveHtmlUnit(Source) 671 * See [resolveHtmlUnit].
672 */ 672 */
673 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource); 673 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource);
674 674
675 /** 675 /**
676 * Return the source factory used to create the sources that can be analyzed i n this context. 676 * Return the source factory used to create the sources that can be analyzed i n this context.
677 * 677 *
678 * @return the source factory used to create the sources that can be analyzed in this context 678 * @return the source factory used to create the sources that can be analyzed in this context
679 */ 679 */
680 SourceFactory get sourceFactory; 680 SourceFactory get sourceFactory;
681 681
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 /** 759 /**
760 * Parse and resolve a single source within the given context to produce a ful ly resolved AST. 760 * Parse and resolve a single source within the given context to produce a ful ly resolved AST.
761 * 761 *
762 * <b>Note:</b> This method cannot be used in an async environment. 762 * <b>Note:</b> This method cannot be used in an async environment.
763 * 763 *
764 * @param unitSource the source to be parsed and resolved 764 * @param unitSource the source to be parsed and resolved
765 * @param library the library containing the source to be resolved 765 * @param library the library containing the source to be resolved
766 * @return the result of resolving the AST structure representing the content of the source in the 766 * @return the result of resolving the AST structure representing the content of the source in the
767 * context of the given library 767 * context of the given library
768 * @throws AnalysisException if the analysis could not be performed 768 * @throws AnalysisException if the analysis could not be performed
769 * @see #getResolvedCompilationUnit(Source, LibraryElement) 769 * See [getResolvedCompilationUnit].
770 */ 770 */
771 CompilationUnit resolveCompilationUnit(Source unitSource, LibraryElement libra ry); 771 CompilationUnit resolveCompilationUnit(Source unitSource, LibraryElement libra ry);
772 772
773 /** 773 /**
774 * Parse and resolve a single source within the given context to produce a ful ly resolved AST. 774 * Parse and resolve a single source within the given context to produce a ful ly resolved AST.
775 * Return the resolved AST structure, or `null` if the source could not be eit her parsed or 775 * Return the resolved AST structure, or `null` if the source could not be eit her parsed or
776 * resolved. 776 * resolved.
777 * 777 *
778 * <b>Note:</b> This method cannot be used in an async environment. 778 * <b>Note:</b> This method cannot be used in an async environment.
779 * 779 *
780 * @param unitSource the source to be parsed and resolved 780 * @param unitSource the source to be parsed and resolved
781 * @param librarySource the source of the defining compilation unit of the lib rary containing the 781 * @param librarySource the source of the defining compilation unit of the lib rary containing the
782 * source to be resolved 782 * source to be resolved
783 * @return the result of resolving the AST structure representing the content of the source in the 783 * @return the result of resolving the AST structure representing the content of the source in the
784 * context of the given library 784 * context of the given library
785 * @throws AnalysisException if the analysis could not be performed 785 * @throws AnalysisException if the analysis could not be performed
786 * @see #getResolvedCompilationUnit(Source, Source) 786 * See [getResolvedCompilationUnit].
787 */ 787 */
788 CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySourc e); 788 CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySourc e);
789 789
790 /** 790 /**
791 * Parse and resolve a single source within the given context to produce a ful ly resolved AST. 791 * Parse and resolve a single source within the given context to produce a ful ly resolved AST.
792 * 792 *
793 * <b>Note:</b> This method cannot be used in an async environment. 793 * <b>Note:</b> This method cannot be used in an async environment.
794 * 794 *
795 * @param htmlSource the source to be parsed and resolved 795 * @param htmlSource the source to be parsed and resolved
796 * @return the result of resolving the AST structure representing the content of the source 796 * @return the result of resolving the AST structure representing the content of the source
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
2192 Source source = iterator.key; 2192 Source source = iterator.key;
2193 if (container.contains(source)) { 2193 if (container.contains(source)) {
2194 sources.add(source); 2194 sources.add(source);
2195 } 2195 }
2196 } 2196 }
2197 } 2197 }
2198 2198
2199 /** 2199 /**
2200 * Given a source for a Dart file and the library that contains it, return a c ache entry in which 2200 * Given a source for a Dart file and the library that contains it, return a c ache entry in which
2201 * the state of the data represented by the given descriptor is either [CacheS tate.VALID] or 2201 * the state of the data represented by the given descriptor is either [CacheS tate.VALID] or
2202 * [CacheState#ERROR]. This method assumes that the data can be produced by ge nerating hints 2202 * [CacheStateERROR]. This method assumes that the data can be produced by gen erating hints
2203 * for the library if the data is not already cached. 2203 * for the library if the data is not already cached.
2204 * 2204 *
2205 * <b>Note:</b> This method cannot be used in an async environment. 2205 * <b>Note:</b> This method cannot be used in an async environment.
2206 * 2206 *
2207 * @param unitSource the source representing the Dart file 2207 * @param unitSource the source representing the Dart file
2208 * @param librarySource the source representing the library containing the Dar t file 2208 * @param librarySource the source representing the library containing the Dar t file
2209 * @param dartEntry the cache entry associated with the Dart file 2209 * @param dartEntry the cache entry associated with the Dart file
2210 * @param descriptor the descriptor representing the data to be returned 2210 * @param descriptor the descriptor representing the data to be returned
2211 * @return a cache entry containing the required data 2211 * @return a cache entry containing the required data
2212 * @throws AnalysisException if data could not be returned because the source could not be parsed 2212 * @throws AnalysisException if data could not be returned because the source could not be parsed
(...skipping 7034 matching lines...) Expand 10 before | Expand all | Expand 10 after
9247 _writeStateOn(buffer, "angularErrors", ANGULAR_ERRORS); 9247 _writeStateOn(buffer, "angularErrors", ANGULAR_ERRORS);
9248 _writeStateOn(buffer, "polymerBuildErrors", POLYMER_BUILD_ERRORS); 9248 _writeStateOn(buffer, "polymerBuildErrors", POLYMER_BUILD_ERRORS);
9249 _writeStateOn(buffer, "polymerResolutionErrors", POLYMER_RESOLUTION_ERRORS); 9249 _writeStateOn(buffer, "polymerResolutionErrors", POLYMER_RESOLUTION_ERRORS);
9250 } 9250 }
9251 } 9251 }
9252 9252
9253 /** 9253 /**
9254 * Instances of the class `IncrementalAnalysisCache` hold information used to pe rform 9254 * Instances of the class `IncrementalAnalysisCache` hold information used to pe rform
9255 * incremental analysis. 9255 * incremental analysis.
9256 * 9256 *
9257 * @see AnalysisContextImpl.setChangedContents(Source, String, int, int, int) 9257 * See [AnalysisContextImpl.setChangedContents].
9258 */ 9258 */
9259 class IncrementalAnalysisCache { 9259 class IncrementalAnalysisCache {
9260 /** 9260 /**
9261 * Determine if the incremental analysis result can be cached for the next inc remental analysis. 9261 * Determine if the incremental analysis result can be cached for the next inc remental analysis.
9262 * 9262 *
9263 * @param cache the prior incremental analysis cache 9263 * @param cache the prior incremental analysis cache
9264 * @param unit the incrementally updated compilation unit 9264 * @param unit the incrementally updated compilation unit
9265 * @return the cache used for incremental analysis or `null` if incremental an alysis results 9265 * @return the cache used for incremental analysis or `null` if incremental an alysis results
9266 * cannot be cached for the next incremental analysis 9266 * cannot be cached for the next incremental analysis
9267 */ 9267 */
(...skipping 4292 matching lines...) Expand 10 before | Expand all | Expand 10 after
13560 _index++; 13560 _index++;
13561 if (_index >= _manager._workQueues[_queueIndex].length) { 13561 if (_index >= _manager._workQueues[_queueIndex].length) {
13562 _index = 0; 13562 _index = 0;
13563 _queueIndex++; 13563 _queueIndex++;
13564 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) { 13564 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) {
13565 _queueIndex++; 13565 _queueIndex++;
13566 } 13566 }
13567 } 13567 }
13568 } 13568 }
13569 } 13569 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_resolver.dart ('k') | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698