InlayHintsProvider<T extends InlayHint> constructor

InlayHintsProvider<T extends InlayHint>({
  1. Event<void>? onDidChangeInlayHints,
  2. FutureOr<List<InlayHint>> provideInlayHints(
    1. TextDocument,
    2. Range,
    3. CancellationToken
    )?,
  3. FutureOr<InlayHint> resolveInlayHint(
    1. InlayHint,
    2. CancellationToken
    )?,
})

Implementation

factory InlayHintsProvider({
  _i3.Event<void>? onDidChangeInlayHints,
  _i4.FutureOr<_i2.List<_i3.InlayHint>> Function(
    _i3.TextDocument,
    _i3.Range,
    _i3.CancellationToken,
  )? provideInlayHints,
  _i4.FutureOr<_i3.InlayHint> Function(
    _i3.InlayHint,
    _i3.CancellationToken,
  )? resolveInlayHint,
}) =>
    InlayHintsProvider._(
      onDidChangeInlayHints: onDidChangeInlayHints ?? _i6.undefined,
      provideInlayHints: provideInlayHints == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
            ) =>
              _i6.Promise.futureOr(() => provideInlayHints(
                    p0,
                    p1,
                    p2,
                  ))),
      resolveInlayHint: resolveInlayHint == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => resolveInlayHint(
                    p0,
                    p1,
                  ))),
    );