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

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

Issue 2948393002: Clean up type parameters in comments (Closed)
Patch Set: Created 3 years, 5 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
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 library analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 * source file is not scheduled to be analyzed within the context of the 324 * source file is not scheduled to be analyzed within the context of the
325 * given library. 325 * given library.
326 */ 326 */
327 CancelableFuture<CompilationUnit> computeResolvedCompilationUnitAsync( 327 CancelableFuture<CompilationUnit> computeResolvedCompilationUnitAsync(
328 Source source, Source librarySource); 328 Source source, Source librarySource);
329 329
330 /** 330 /**
331 * Perform work until the given [result] has been computed for the given 331 * Perform work until the given [result] has been computed for the given
332 * [target]. Return the computed value. 332 * [target]. Return the computed value.
333 */ 333 */
334 Object/*=V*/ computeResult/*<V>*/( 334 V computeResult<V>(AnalysisTarget target, ResultDescriptor<V> result);
335 AnalysisTarget target, ResultDescriptor/*<V>*/ result);
336 335
337 /** 336 /**
338 * Notifies the context that the client is going to stop using this context. 337 * Notifies the context that the client is going to stop using this context.
339 */ 338 */
340 void dispose(); 339 void dispose();
341 340
342 /** 341 /**
343 * Return `true` if the given [source] exists. 342 * Return `true` if the given [source] exists.
344 * 343 *
345 * This method should be used rather than the method [Source.exists] because 344 * This method should be used rather than the method [Source.exists] because
(...skipping 12 matching lines...) Expand all
358 CompilationUnitElement getCompilationUnitElement( 357 CompilationUnitElement getCompilationUnitElement(
359 Source unitSource, Source librarySource); 358 Source unitSource, Source librarySource);
360 359
361 /** 360 /**
362 * Return configuration data associated with the given key or the [key]'s 361 * Return configuration data associated with the given key or the [key]'s
363 * default value if no state has been associated. 362 * default value if no state has been associated.
364 * 363 *
365 * See [setConfigurationData]. 364 * See [setConfigurationData].
366 */ 365 */
367 @deprecated 366 @deprecated
368 Object/*=V*/ getConfigurationData/*<V>*/(ResultDescriptor/*<V>*/ key); 367 V getConfigurationData<V>(ResultDescriptor<V> key);
369 368
370 /** 369 /**
371 * Return the contents and timestamp of the given [source]. 370 * Return the contents and timestamp of the given [source].
372 * 371 *
373 * This method should be used rather than the method [Source.getContents] 372 * This method should be used rather than the method [Source.getContents]
374 * because contexts can have local overrides of the content of a source that 373 * because contexts can have local overrides of the content of a source that
375 * the source is not aware of. 374 * the source is not aware of.
376 */ 375 */
377 TimestampedData<String> getContents(Source source); 376 TimestampedData<String> getContents(Source source);
378 377
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 */ 486 */
488 CompilationUnit getResolvedCompilationUnit2( 487 CompilationUnit getResolvedCompilationUnit2(
489 Source unitSource, Source librarySource); 488 Source unitSource, Source librarySource);
490 489
491 /** 490 /**
492 * Return the value of the given [result] for the given [target]. 491 * Return the value of the given [result] for the given [target].
493 * 492 *
494 * If the corresponding [target] does not exist, or the [result] is not 493 * If the corresponding [target] does not exist, or the [result] is not
495 * computed yet, then the default value is returned. 494 * computed yet, then the default value is returned.
496 */ 495 */
497 Object/*=V*/ getResult/*<V>*/( 496 V getResult<V>(AnalysisTarget target, ResultDescriptor<V> result);
498 AnalysisTarget target, ResultDescriptor/*<V>*/ result);
499 497
500 /** 498 /**
501 * Return a list of the sources being analyzed in this context whose full path 499 * Return a list of the sources being analyzed in this context whose full path
502 * is equal to the given [path]. 500 * is equal to the given [path].
503 */ 501 */
504 List<Source> getSourcesWithFullName(String path); 502 List<Source> getSourcesWithFullName(String path);
505 503
506 /** 504 /**
507 * Invalidates hints in the given [librarySource] and included parts. 505 * Invalidates hints in the given [librarySource] and included parts.
508 */ 506 */
(...skipping 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 */ 2861 */
2864 bool get wereSourcesAdded => _changeSet.addedSources.length > 0; 2862 bool get wereSourcesAdded => _changeSet.addedSources.length > 0;
2865 2863
2866 /** 2864 /**
2867 * Return `true` if any sources were removed or deleted. 2865 * Return `true` if any sources were removed or deleted.
2868 */ 2866 */
2869 bool get wereSourcesRemoved => 2867 bool get wereSourcesRemoved =>
2870 _changeSet.removedSources.length > 0 || 2868 _changeSet.removedSources.length > 0 ||
2871 _changeSet.removedContainers.length > 0; 2869 _changeSet.removedContainers.length > 0;
2872 } 2870 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_resolver.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698