MCPcopy Create free account
hub / github.com/dynjs/dynjs / isRegexpEnabled

Method isRegexpEnabled

src/main/java/org/dynjs/parser/js/Lexer.java:125–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 private boolean isRegexpEnabled() {
126 if (this.lastTokenType == null) {
127 return true;
128 }
129 switch (this.lastTokenType) {
130 case IDENTIFIER:
131 case NULL:
132 case TRUE:
133 case FALSE:
134 case THIS:
135 case DECIMAL_LITERAL:
136 case HEX_LITERAL:
137 case STRING_LITERAL:
138 case RIGHT_BRACKET:
139 case RIGHT_PAREN:
140 return false;
141 case RIGHT_BRACE:
142 if ( this.parens > 0 ) {
143 return false;
144 }
145 default:
146 return true;
147 }
148 }
149
150 public Token nextToken() throws LexerException {
151 int d;

Callers 1

nextTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected