7c754d325d
This change adds a new parameter `typeParametersInScope` to `DartEditBuilder.writeType`, and related methods to deprecate the previous `methodBeingCopied` parameter, which limited our ability to pass in some type parameters that are in scope. Also fixes a TODO about testing if the `Record` feature is enabled or not. And as a bonus, we now always write down type parameters by looking for the closest public type or falling back to `Object?` or `dynamic`. Bug: https://github.com/dart-lang/sdk/issues/61186 Change-Id: I7a7b1c62adb81aecfdf61ebbaa0d95f1d33bced8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442282 Commit-Queue: Samuel Rawlins <srawlins@google.com> Auto-Submit: Felipe Morschel <git@fmorschel.dev> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>