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)
102
if (item.
TryGetProperty
("ShouldProvideParenthesisCompletion", out _))
130
=> item.
TryGetProperty
("Symbols", out var _);
136
if (item.
TryGetProperty
("Symbols", out var symbolIds))
236
if (item.
TryGetProperty
("InvalidProjects", out var invalidProjects)
237
&& item.
TryGetProperty
("CandidateProjects", out var candidateProjects))
250
if (item.
TryGetProperty
("ContextPosition", out var text) &&
268
=> item.
TryGetProperty
(InsertionTextProperty, out insertionText);
351
=> item.
TryGetProperty
("SymbolName", out var name) ? name : null;
354
=> item.
TryGetProperty
("SymbolKind", out var kind) ? (SymbolKind?)int.Parse(kind) : null;
357
=> item.
TryGetProperty
("IsGeneric", out var v) && bool.TryParse(v, out var isGeneric) && isGeneric;