fbfe5691cb
Deprecate the entryPoint parameter, but still accept it in place of what used to be (positionally) compilationUnit. Detect if we have a compilation unit or not; and in the case we don't, add a new protection by asserting that it has no parent (its the root of the dangling tree). Its more of an implementation detail that completion contributors don't work well on dangling nodes, so fix it up for clients rather than expecting them to do it themselves. Change-Id: I3e454734e5b515f4e536f7229d541ca8c6aed60c Reviewed-on: https://dart-review.googlesource.com/52645 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Mike Fairhurst <mfairhurst@google.com>