Exemplo n.º 1
0
        // TODO group binder
        // public override Binder VisitSelectionEntryGroup(SelectionEntryGroupNode node)
        // {
        //     var next = DefaultVisit(node);
        //     return new SelectionGroupBinder(next, node);
        // }

        private static IContainerEntrySymbol?GetContainerEntry(Binder binder, SourceNode node)
        {
            if (binder.ContainingContainerSymbol is { } container)
            {
                return(container);
            }
            _ = node.FirstAncestorOrSelf <ContainerEntryBaseNode>();
            // TODO not sure what to do here
            return(null);
        }