18 references to LightupHelpers
Microsoft.CodeAnalysis.EditorFeatures.Wpf (18)
Lightup\ISmartRenameSessionFactoryWrapper.cs (2)
26
s_createSmartRenameSession =
LightupHelpers
.CreateFunctionAccessor<object, SnapshotSpan, object?>(s_wrappedType, nameof(CreateSmartRenameSession), typeof(SnapshotSpan), SpecializedTasks.Null<object>());
51
return instance != null &&
LightupHelpers
.CanWrapObject(instance, s_wrappedType);
Lightup\ISmartRenameSessionWrapper.cs (16)
49
s_automaticFetchDelayAccessor =
LightupHelpers
.CreatePropertyAccessor<object, TimeSpan>(s_wrappedType, nameof(AutomaticFetchDelay), TimeSpan.Zero);
50
s_isAvailableAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(IsAvailable), false);
51
s_hasSuggestionsAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(HasSuggestions), false);
52
s_isInProgressAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(IsInProgress), false);
53
s_statusMessageAccessor =
LightupHelpers
.CreatePropertyAccessor<object, string>(s_wrappedType, nameof(StatusMessage), "");
54
s_statusMessageVisibilityAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(StatusMessageVisibility), false);
55
s_suggestedNamesAccessor =
LightupHelpers
.CreatePropertyAccessor<object, IReadOnlyList<string>>(s_wrappedType, nameof(SuggestedNames), []);
56
s_correlationIdAccessor =
LightupHelpers
.CreatePropertyAccessor<object, Guid>(s_wrappedType, nameof(CorrelationId), Guid.Empty);
60
s_renameContextImmutableListCreateBuilderAccessor =
LightupHelpers
.CreateGenericFunctionAccessor<object?, object?>(typeof(ImmutableArray),
65
s_renameContextImmutableListBuilderAddAccessor =
LightupHelpers
.CreateActionAccessor<object, object>(typeof(ImmutableArray<>.Builder).MakeGenericType(s_wrappedRenameContextType),
68
s_renameContextImmutableListBuilderToArrayAccessor =
LightupHelpers
.CreateFunctionAccessor<object, object>(typeof(ImmutableArray<>.Builder).MakeGenericType(s_wrappedRenameContextType),
74
s_getSuggestionsAsync_WithContext =
LightupHelpers
.CreateFunctionAccessor<object, object, CancellationToken, Task<IReadOnlyList<string>>>(s_wrappedType,
81
s_getSuggestionsAsync =
LightupHelpers
.CreateFunctionAccessor<object, CancellationToken, Task<IReadOnlyList<string>>>(s_wrappedType, nameof(GetSuggestionsAsync), typeof(CancellationToken), SpecializedTasks.EmptyReadOnlyList<string>());
82
s_onCancel =
LightupHelpers
.CreateActionAccessor<object>(s_wrappedType, nameof(OnCancel));
83
s_onSuccess =
LightupHelpers
.CreateActionAccessor<object, string>(s_wrappedType, nameof(OnSuccess), typeof(string));
123
return instance != null &&
LightupHelpers
.CanWrapObject(instance, s_wrappedType);