29 references to TryGetProperty
Microsoft.CodeAnalysis.Features (29)
Completion\CommonCompletionItem.cs (2)
64
=> item.
TryGetProperty
(DescriptionProperty, out var _);
68
if (item.
TryGetProperty
(DescriptionProperty, out var encodedDescription))
Completion\CompletionItem.cs (1)
131
if (
TryGetProperty
(name, out var value))
Completion\Providers\AbstractCrefCompletionProvider.cs (1)
24
if (item.
TryGetProperty
(HideAdvancedMembers, out var hideAdvancedMembersString) &&
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (9)
96
Debug.Assert(!attributeItem.
TryGetProperty
(AttributeFullName, out var _));
162
var typeName = item.
TryGetProperty
(AttributeFullName, out var attributeFullName)
166
if (item.
TryGetProperty
(TypeAritySuffixName, out var aritySuffix))
180
if (item.
TryGetProperty
(MethodKey, out var methodSymbolKey))
186
var overloadCount = item.
TryGetProperty
(OverloadCountKey, out var overloadCountString) && int.TryParse(overloadCountString, out var count) ? count : 0;
189
if (item.
TryGetProperty
(ReceiverKey, out var receiverTypeKey))
206
var typeName = item.
TryGetProperty
(AttributeFullName, out var attributeFullName) ? attributeFullName : item.DisplayText;
212
if (item.
TryGetProperty
(TypeAritySuffixName, out var aritySuffix))
227
public static bool ShouldAlwaysFullyQualify(CompletionItem item) => item.
TryGetProperty
(AlwaysFullyQualifyKey, out var _);
Completion\Providers\MemberInsertingCompletionItem.cs (3)
43
if (item.
TryGetProperty
("Modifiers", out var text) &&
54
if (item.
TryGetProperty
("Line", out var text)
65
if (item.
TryGetProperty
("TokenSpanEnd", out var text)
Completion\Providers\Snippets\SnippetCompletionItem.cs (3)
44
Contract.ThrowIfFalse(item.
TryGetProperty
(SnippetIdentifierKey, out var text));
50
Contract.ThrowIfFalse(item.
TryGetProperty
("Position", out var text));
57
return item.
TryGetProperty
(SnippetIdentifierKey, out var _);
Completion\Providers\SymbolCompletionItem.cs (10)
100
if (item.
TryGetProperty
("ShouldProvideParenthesisCompletion", out _))
128
=> item.
TryGetProperty
("Symbols", out var _);
134
if (item.
TryGetProperty
("Symbols", out var symbolIds))
234
if (item.
TryGetProperty
("InvalidProjects", out var invalidProjects)
235
&& item.
TryGetProperty
("CandidateProjects", out var candidateProjects))
248
if (item.
TryGetProperty
("ContextPosition", out var text) &&
266
=> item.
TryGetProperty
(InsertionTextProperty, out insertionText);
349
=> item.
TryGetProperty
("SymbolName", out var name) ? name : null;
352
=> item.
TryGetProperty
("SymbolKind", out var kind) ? (SymbolKind?)int.Parse(kind) : null;
355
=> item.
TryGetProperty
("IsGeneric", out var v) && bool.TryParse(v, out var isGeneric) && isGeneric;