MCPcopy
hub / github.com/dianping/cat / try_ValidateExpr

Function try_ValidateExpr

cat-home/src/main/webapp/assets/js/editor/worker-xquery.js:7119–7141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7117 }
7118
7119 function try_ValidateExpr()
7120 {
7121 shiftT(266); // 'validate'
7122 lookahead1W(175); // S^WS | '(:' | 'lax' | 'strict' | 'type' | '{'
7123 if (l1 != 281) // '{'
7124 {
7125 switch (l1)
7126 {
7127 case 258: // 'type'
7128 shiftT(258); // 'type'
7129 lookahead1W(246); // EQName^Token | S^WS | '(:' | 'after' | 'allowing' | 'ancestor' |
7130 try_TypeName();
7131 break;
7132 default:
7133 try_ValidationMode();
7134 }
7135 }
7136 lookahead1W(90); // S^WS | '(:' | '{'
7137 shiftT(281); // '{'
7138 lookahead1W(267); // EQName^Token | IntegerLiteral | DecimalLiteral | DoubleLiteral | StringLiteral |
7139 try_Expr();
7140 shiftT(287); // '}'
7141 }
7142
7143 function parse_ValidationMode()
7144 {

Callers 1

try_ValueExprFunction · 0.85

Calls 5

shiftTFunction · 0.85
try_TypeNameFunction · 0.85
try_ValidationModeFunction · 0.85
try_ExprFunction · 0.85
lookahead1WFunction · 0.70

Tested by

no test coverage detected