1a260925ef
CanonicalType is a leftover method/field from the time classes were keeping track of their own canonical types and is still used for non-generic classes. DeclarationType is more general and can be used where CanonicalType is used. The field canonical_type_ is renamed to declaration_type_ and now caches the DeclarationType. Change-Id: I585c7bc2d3ae760a4a0e783bc77fb8d8efdbf682 Reviewed-on: https://dart-review.googlesource.com/c/87482 Commit-Queue: Régis Crelier <regis@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>