TypeHierarchyProvider constructor
TypeHierarchyProvider({
- FutureOr<
Object> prepareTypeHierarchy()?, - FutureOr<
List< provideTypeHierarchySupertypes()?,TypeHierarchyItem> > - FutureOr<
List< provideTypeHierarchySubtypes()?,TypeHierarchyItem> >
Implementation
factory TypeHierarchyProvider({
_i4.FutureOr<_i2.Object> Function(
_i3.TextDocument,
_i3.Position,
_i3.CancellationToken,
)? prepareTypeHierarchy,
_i4.FutureOr<_i2.List<_i3.TypeHierarchyItem>> Function(
_i3.TypeHierarchyItem,
_i3.CancellationToken,
)? provideTypeHierarchySupertypes,
_i4.FutureOr<_i2.List<_i3.TypeHierarchyItem>> Function(
_i3.TypeHierarchyItem,
_i3.CancellationToken,
)? provideTypeHierarchySubtypes,
}) =>
TypeHierarchyProvider._(
prepareTypeHierarchy: prepareTypeHierarchy == null
? null
: _i5.allowInterop((
p0,
p1,
p2,
) =>
_i6.Promise.futureOr(() => prepareTypeHierarchy(
p0,
p1,
p2,
))),
provideTypeHierarchySupertypes: provideTypeHierarchySupertypes == null
? null
: _i5.allowInterop((
p0,
p1,
) =>
_i6.Promise.futureOr(() => provideTypeHierarchySupertypes(
p0,
p1,
))),
provideTypeHierarchySubtypes: provideTypeHierarchySubtypes == null
? null
: _i5.allowInterop((
p0,
p1,
) =>
_i6.Promise.futureOr(() => provideTypeHierarchySubtypes(
p0,
p1,
))),
);