InlineValuesProvider constructor

InlineValuesProvider({
  1. Event<void>? onDidChangeInlineValues,
  2. FutureOr<List<Object>> provideInlineValues(
    1. TextDocument,
    2. Range,
    3. InlineValueContext,
    4. CancellationToken,
    )?,
})

Implementation

factory InlineValuesProvider({
  _i3.Event<void>? onDidChangeInlineValues,
  _i4.FutureOr<_i2.List<_i2.Object>> Function(
    _i3.TextDocument,
    _i3.Range,
    _i3.InlineValueContext,
    _i3.CancellationToken,
  )? provideInlineValues,
}) =>
    InlineValuesProvider._(
      onDidChangeInlineValues: onDidChangeInlineValues ?? _i6.undefined,
      provideInlineValues: provideInlineValues == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
              p3,
            ) =>
              _i6.Promise.futureOr(() => provideInlineValues(
                    p0,
                    p1,
                    p2,
                    p3,
                  ))),
    );