CallHierarchyProvider constructor

CallHierarchyProvider({
  1. FutureOr<Object> prepareCallHierarchy(
    1. TextDocument,
    2. Position,
    3. CancellationToken
    )?,
  2. FutureOr<List<CallHierarchyIncomingCall>> provideCallHierarchyIncomingCalls(
    1. CallHierarchyItem,
    2. CancellationToken
    )?,
  3. FutureOr<List<CallHierarchyOutgoingCall>> provideCallHierarchyOutgoingCalls(
    1. CallHierarchyItem,
    2. CancellationToken
    )?,
})

Implementation

factory CallHierarchyProvider({
  _i4.FutureOr<_i2.Object> Function(
    _i3.TextDocument,
    _i3.Position,
    _i3.CancellationToken,
  )? prepareCallHierarchy,
  _i4.FutureOr<_i2.List<_i3.CallHierarchyIncomingCall>> Function(
    _i3.CallHierarchyItem,
    _i3.CancellationToken,
  )? provideCallHierarchyIncomingCalls,
  _i4.FutureOr<_i2.List<_i3.CallHierarchyOutgoingCall>> Function(
    _i3.CallHierarchyItem,
    _i3.CancellationToken,
  )? provideCallHierarchyOutgoingCalls,
}) =>
    CallHierarchyProvider._(
      prepareCallHierarchy: prepareCallHierarchy == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
            ) =>
              _i6.Promise.futureOr(() => prepareCallHierarchy(
                    p0,
                    p1,
                    p2,
                  ))),
      provideCallHierarchyIncomingCalls: provideCallHierarchyIncomingCalls ==
              null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => provideCallHierarchyIncomingCalls(
                    p0,
                    p1,
                  ))),
      provideCallHierarchyOutgoingCalls: provideCallHierarchyOutgoingCalls ==
              null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => provideCallHierarchyOutgoingCalls(
                    p0,
                    p1,
                  ))),
    );