mockito icon indicating copy to clipboard operation
mockito copied to clipboard

Import uri of revived constants is derived in a brittle way

Open mattrbeck opened this issue 1 year ago • 0 comments

Mockito assumes that the import uri is where an constant's type is defined, which isn't always true. This may not cause problems today, but it breaks when trying to revive variables directly in source_gen. See https://github.com/dart-lang/source_gen/pull/713#issuecomment-2345167676 for details

mattrbeck avatar Sep 12 '24 03:09 mattrbeck