1 write to ValueUsageInfoOpt
Microsoft.CodeAnalysis.Workspaces (1)
SymbolUsageInfo.cs (1)
33ValueUsageInfoOpt = valueUsageInfoOpt;
17 references to ValueUsageInfoOpt
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
FindReferences\FindReferencesTests.vb (2)
113context.References.Where(Function(r) r.SymbolUsageInfo.ValueUsageInfoOpt?.ToString() = valueUsageInfoField).Select(Function(r) r.SourceSpan)) 348actualReferences = GetActualReferences(result, uiVisibleOnly, options, document, Function(r) r.SymbolUsageInfo.ValueUsageInfoOpt?.ToString() = valueUsageInfoField)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\ProtocolConversions.cs (2)
591if (symbolUsageInfo.ValueUsageInfoOpt.HasValue) 593var usageInfo = symbolUsageInfo.ValueUsageInfoOpt.Value;
Microsoft.CodeAnalysis.Workspaces (11)
SymbolUsageInfo.cs (11)
44=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 47=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo(); 50=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsNameOnly(); 57if (ValueUsageInfoOpt.HasValue) 59return other.ValueUsageInfoOpt.HasValue && 60ValueUsageInfoOpt.Value == other.ValueUsageInfoOpt.Value; 71=> Hash.Combine(((int?)ValueUsageInfoOpt)?.GetHashCode() ?? 0, ((int?)TypeOrNamespaceUsageInfoOpt)?.GetHashCode() ?? 0);
Microsoft.VisualStudio.LanguageServices (2)
Extensions\SymbolUsageInfoExtensions.cs (2)
19if (symbolUsageInfo.ValueUsageInfoOpt.HasValue) 21var usageInfo = symbolUsageInfo.ValueUsageInfoOpt.Value;