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

Function parse_Module

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

Source from the content-addressed store, hash-verified

3153 };
3154
3155 function parse_Module()
3156 {
3157 eventHandler.startNonterminal("Module", e0);
3158 switch (l1)
3159 {
3160 case 170: // 'jsoniq'
3161 lookahead2W(168); // S^WS | '#' | '(' | '(:' | 'encoding' | 'version'
3162 break;
3163 default:
3164 lk = l1;
3165 }
3166 if (lk == 64682 // 'jsoniq' 'encoding'
3167 || lk == 137898) // 'jsoniq' 'version'
3168 {
3169 parse_VersionDecl();
3170 }
3171 lookahead1W(278); // EQName^Token | IntegerLiteral | DecimalLiteral | DoubleLiteral | StringLiteral |
3172 switch (l1)
3173 {
3174 case 185: // 'module'
3175 lookahead2W(146); // S^WS | '#' | '(' | '(:' | 'namespace'
3176 break;
3177 default:
3178 lk = l1;
3179 }
3180 switch (lk)
3181 {
3182 case 95929: // 'module' 'namespace'
3183 whitespace();
3184 parse_LibraryModule();
3185 break;
3186 default:
3187 whitespace();
3188 parse_MainModule();
3189 }
3190 eventHandler.endNonterminal("Module", e0);
3191 }
3192
3193 function parse_VersionDecl()
3194 {

Callers 1

worker-xquery.jsFile · 0.85

Calls 6

lookahead2WFunction · 0.85
parse_VersionDeclFunction · 0.85
parse_LibraryModuleFunction · 0.85
parse_MainModuleFunction · 0.85
lookahead1WFunction · 0.70
whitespaceFunction · 0.70

Tested by

no test coverage detected