TypeHierarchyProvider constructor

TypeHierarchyProvider({
  1. FutureOr<Object> prepareTypeHierarchy(
    1. TextDocument,
    2. Position,
    3. CancellationToken
    )?,
  2. FutureOr<List<TypeHierarchyItem>> provideTypeHierarchySupertypes(
    1. TypeHierarchyItem,
    2. CancellationToken
    )?,
  3. FutureOr<List<TypeHierarchyItem>> provideTypeHierarchySubtypes(
    1. TypeHierarchyItem,
    2. CancellationToken
    )?,
})

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,
                  ))),
    );