public bool IsAcceptedUsingOracle(CstNode uppermostNode) { return(uppermostNode.DescendantsOfSingleAndSelf() .Concat(uppermostNode.AncestorsWithSingleChild()) .Where(e => OracleNames.Contains(e.Name)) .Any(ProtectedIsAcceptedUsingOracle)); }
public bool IsAcceptedUsingOracle(CstNode uppermostNode) { return uppermostNode.DescendantsOfSingleAndSelf() .Concat(uppermostNode.AncestorsWithSingleChild()) .Where(e => OracleNames.Contains(e.Name)) .Any(ProtectedIsAcceptedUsingOracle); }