Beispiel #1
0
            public IReadOnlyList <SyntaxNode> GetNodes(SyntaxAnnotation id)
            {
                IReadOnlyList <SyntaxNode>?nodes;

                if (_idToNodeMap.TryGetValue(id, out nodes))
                {
                    return(nodes);
                }
                else
                {
                    return(SpecializedCollections.EmptyReadOnlyList <SyntaxNode>());
                }
            }
Beispiel #2
0
 public bool TryGetTable(object key, [NotNullWhen(true)] out IStateTable?table) => _tableBuilder.TryGetValue(key, out table);