1
1
#if LEGACY
2
2
3
- using System ;
4
3
using System . Collections . Generic ;
5
4
using System . Threading . Tasks ;
6
5
using System . Management . Automation . Language ;
@@ -15,16 +14,19 @@ public sealed class PredictionResult
15
14
/// <summary>
16
15
/// Gets the Id of the predictor.
17
16
/// </summary>
17
+ [ HiddenAttribute ]
18
18
public Guid Id { get ; }
19
19
20
20
/// <summary>
21
21
/// Gets the name of the predictor.
22
22
/// </summary>
23
+ [ HiddenAttribute ]
23
24
public string Name { get ; }
24
25
25
26
/// <summary>
26
27
/// Gets the suggestions.
27
28
/// </summary>
29
+ [ HiddenAttribute ]
28
30
public IReadOnlyList < PredictiveSuggestion > Suggestions { get ; }
29
31
30
32
internal PredictionResult ( Guid id , string name , List < PredictiveSuggestion > suggestions )
@@ -43,17 +45,20 @@ public sealed class PredictiveSuggestion
43
45
/// <summary>
44
46
/// Gets the suggestion.
45
47
/// </summary>
48
+ [ HiddenAttribute ]
46
49
public string SuggestionText { get ; }
47
50
48
51
/// <summary>
49
52
/// Gets the tooltip of the suggestion.
50
53
/// </summary>
54
+ [ HiddenAttribute ]
51
55
public string ToolTip { get ; }
52
56
53
57
/// <summary>
54
58
/// Initializes a new instance of the <see cref="PredictiveSuggestion"/> class.
55
59
/// </summary>
56
60
/// <param name="suggestion">The predictive suggestion text.</param>
61
+ [ HiddenAttribute ]
57
62
public PredictiveSuggestion ( string suggestion )
58
63
: this ( suggestion , toolTip : null )
59
64
{
@@ -64,6 +69,7 @@ public PredictiveSuggestion(string suggestion)
64
69
/// </summary>
65
70
/// <param name="suggestion">The predictive suggestion text.</param>
66
71
/// <param name="toolTip">The tooltip of the suggestion.</param>
72
+ [ HiddenAttribute ]
67
73
public PredictiveSuggestion ( string suggestion , string toolTip )
68
74
{
69
75
if ( string . IsNullOrEmpty ( suggestion ) )
@@ -87,6 +93,7 @@ public static class CommandPrediction
87
93
/// <param name="ast">The <see cref="Ast"/> object from parsing the current command line input.</param>
88
94
/// <param name="astTokens">The <see cref="Token"/> objects from parsing the current command line input.</param>
89
95
/// <returns>A list of <see cref="PredictionResult"/> objects.</returns>
96
+ [ HiddenAttribute ]
90
97
public static Task < List < PredictionResult > > PredictInput ( Ast ast , Token [ ] astTokens )
91
98
{
92
99
return null ;
@@ -99,6 +106,7 @@ public static Task<List<PredictionResult>> PredictInput(Ast ast, Token[] astToke
99
106
/// <param name="astTokens">The <see cref="Token"/> objects from parsing the current command line input.</param>
100
107
/// <param name="millisecondsTimeout">The milliseconds to timeout.</param>
101
108
/// <returns>A list of <see cref="PredictionResult"/> objects.</returns>
109
+ [ HiddenAttribute ]
102
110
public static Task < List < PredictionResult > > PredictInput ( Ast ast , Token [ ] astTokens , int millisecondsTimeout )
103
111
{
104
112
return null ;
@@ -108,6 +116,7 @@ public static Task<List<PredictionResult>> PredictInput(Ast ast, Token[] astToke
108
116
/// Allow registered predictors to do early processing when a command line is accepted.
109
117
/// </summary>
110
118
/// <param name="history">History command lines provided as references for prediction.</param>
119
+ [ HiddenAttribute ]
111
120
public static void OnCommandLineAccepted ( IReadOnlyList < string > history )
112
121
{
113
122
}
@@ -117,6 +126,7 @@ public static void OnCommandLineAccepted(IReadOnlyList<string> history)
117
126
/// </summary>
118
127
/// <param name="predictorId">The identifier of the predictor whose prediction result was accepted.</param>
119
128
/// <param name="suggestionText">The accepted suggestion text.</param>
129
+ [ HiddenAttribute ]
120
130
public static void OnSuggestionAccepted ( Guid predictorId , string suggestionText )
121
131
{
122
132
}
0 commit comments