Lines Matching refs:constant

308                         'constant' => $tag,
337 'constant' => $tag,
529 if (isset($decoded['constant']) || !array_key_exists($intype, self::ANY_MAP) || (ord(self::$encoded[$decoded['start']]) & 0x20)) {
540 case isset($option['constant']) && $option['constant'] == $decoded['constant']:
541 case !isset($option['constant']) && $option['type'] == $decoded['type']:
544 case !isset($option['constant']) && $option['type'] == self::TYPE_CHOICE:
603 // Get the mapping and input class & constant.
605 $constant = null;
606 if (isset($temp['constant'])) {
611 $constant = $child['cast'];
612 } elseif (isset($child['constant'])) {
614 $constant = $child['constant'];
617 if (isset($constant) && isset($temp['constant'])) {
619 $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
621 // Can only match if no constant expected and type matches or is generic.
622 $maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_ANY, self::TYPE_CHOICE]) !== false;
669 if (isset($temp['constant'])) {
680 $constant = null;
683 $constant = $child['cast'];
684 } elseif (isset($child['constant'])) {
686 $constant = $child['constant'];
689 if (isset($constant) && isset($temp['constant'])) {
691 $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
693 // Can only match if no constant expected and type matches or is generic.
694 $maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_ANY, self::TYPE_CHOICE]) !== false;
922 // if isset($child['constant']) is true then isset($child['optional']) should be true as well
923 if (isset($child['constant'])) {
934 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
937 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
965 // if isset($child['constant']) is true then isset($child['optional']) should be true as well
966 if (isset($child['constant'])) {
968 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
971 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);