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

Unified Diff: pkg/analyzer/lib/src/task/strong/ast_properties.dart

Issue 2996653002: Fix more uses of generic method comments and increment the data version (TBR) (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/task/strong/ast_properties.dart
diff --git a/pkg/analyzer/lib/src/task/strong/ast_properties.dart b/pkg/analyzer/lib/src/task/strong/ast_properties.dart
index 1497a91757ced2f76ce6897167051f73d335bdd5..becaebe76731d54976b546954cb749689bbdab1f 100644
--- a/pkg/analyzer/lib/src/task/strong/ast_properties.dart
+++ b/pkg/analyzer/lib/src/task/strong/ast_properties.dart
@@ -27,26 +27,26 @@ const String _covariantPrivateMembers = '_covariantPrivateMembers';
/// and MethodInvocation calls on functions (`obj.f()` where `obj.f` is an
/// accessor and not a real method) can need a cast on the function.
DartType getImplicitOperationCast(Expression node) {
- return node.getProperty/*<DartType>*/(_implicitOperationCast);
+ return node.getProperty<DartType>(_implicitOperationCast);
}
/// If this expression has an implicit cast, returns the type it is coerced to,
/// otherwise returns null.
DartType getImplicitCast(Expression node) {
- return node.getProperty/*<DartType>*/(_implicitCast);
+ return node.getProperty<DartType>(_implicitCast);
}
/// True if this compilation unit has any implicit casts, otherwise false.
///
/// See also [getImplicitCast].
bool hasImplicitCasts(CompilationUnit node) {
- return node.getProperty/*<bool>*/(_hasImplicitCasts) ?? false;
+ return node.getProperty<bool>(_hasImplicitCasts) ?? false;
}
/// True if this node is a dynamic operation that requires dispatch and/or
/// checking at runtime.
bool isDynamicInvoke(Expression node) {
- return node.getProperty/*<bool>*/(_isDynamicInvoke) ?? false;
+ return node.getProperty<bool>(_isDynamicInvoke) ?? false;
}
/// Sets [hasImplicitCasts] property for this compilation unit.
« no previous file with comments | « pkg/analyzer/lib/src/task/inputs.dart ('k') | pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698