Exemple #1
0
        // Compat with mbuild client type interface

        public TargetList FilterScope(IGraphState graph, string here, OperationScope scope)
        {
            if (inner == null)
            {
                return(TargetList.Null);
            }

            short hereid = graph.GetProviderId(here);

            if (hereid < 0)
            {
                throw ExHelp.App("Nonexistant provider basis `{0}'", here);
            }

            switch (scope)
            {
            case OperationScope.Everywhere:
                return(this);

            case OperationScope.HereAndBelow:
                return(FilterInside(graph, hereid));

            case OperationScope.HereOnly:
                return(FilterExact(hereid));

            default:
                throw ExHelp.App("Unknown OperationScope {0} (here = {1})", scope, here);
            }
        }
Exemple #2
0
 public short GetProviderId(string basis)
 {
     n_GetProviderId++;
     return(inner.GetProviderId(basis));
 }