17 references to LightupHelpers
Microsoft.CodeAnalysis.EditorFeatures.Wpf (17)
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 (15)
48
s_automaticFetchDelayAccessor =
LightupHelpers
.CreatePropertyAccessor<object, TimeSpan>(s_wrappedType, nameof(AutomaticFetchDelay), TimeSpan.Zero);
49
s_isAvailableAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(IsAvailable), false);
50
s_hasSuggestionsAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(HasSuggestions), false);
51
s_isInProgressAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(IsInProgress), false);
52
s_statusMessageAccessor =
LightupHelpers
.CreatePropertyAccessor<object, string>(s_wrappedType, nameof(StatusMessage), "");
53
s_statusMessageVisibilityAccessor =
LightupHelpers
.CreatePropertyAccessor<object, bool>(s_wrappedType, nameof(StatusMessageVisibility), false);
54
s_suggestedNamesAccessor =
LightupHelpers
.CreatePropertyAccessor<object, IReadOnlyList<string>>(s_wrappedType, nameof(SuggestedNames), []);
58
s_renameContextImmutableListCreateBuilderAccessor =
LightupHelpers
.CreateGenericFunctionAccessor<object?, object?>(typeof(ImmutableArray),
63
s_renameContextImmutableListBuilderAddAccessor =
LightupHelpers
.CreateActionAccessor<object, object>(typeof(ImmutableArray<>.Builder).MakeGenericType(s_wrappedRenameContextType),
66
s_renameContextImmutableListBuilderToArrayAccessor =
LightupHelpers
.CreateFunctionAccessor<object, object>(typeof(ImmutableArray<>.Builder).MakeGenericType(s_wrappedRenameContextType),
72
s_getSuggestionsAsync_WithContext =
LightupHelpers
.CreateFunctionAccessor<object, object, CancellationToken, Task<IReadOnlyList<string>>>(s_wrappedType,
79
s_getSuggestionsAsync =
LightupHelpers
.CreateFunctionAccessor<object, CancellationToken, Task<IReadOnlyList<string>>>(s_wrappedType, nameof(GetSuggestionsAsync), typeof(CancellationToken), SpecializedTasks.EmptyReadOnlyList<string>());
80
s_onCancel =
LightupHelpers
.CreateActionAccessor<object>(s_wrappedType, nameof(OnCancel));
81
s_onSuccess =
LightupHelpers
.CreateActionAccessor<object, string>(s_wrappedType, nameof(OnSuccess), typeof(string));
120
return instance != null &&
LightupHelpers
.CanWrapObject(instance, s_wrappedType);