MCPcopy Index your code
hub / github.com/apache/tomcat / parseDeclaration

Method parseDeclaration

java/org/apache/jasper/compiler/Parser.java:594–603  ·  view source on GitHub ↗
(Node parent)

Source from the content-addressed store, hash-verified

592 * DeclarationBody ::= (Char* - (char* '%>')) '%>'
593 */
594 private void parseDeclaration(Node parent) throws JasperException {
595 start = reader.mark();
596 Mark stop = reader.skipUntil("%>");
597 if (stop == null) {
598 err.jspError(start, "jsp.error.unterminated", "<%!");
599 }
600
601 @SuppressWarnings("unused")
602 Node unused = new Node.Declaration(parseScriptText(reader.getText(start, stop)), start, parent);
603 }
604
605 /*
606 * XMLDeclarationBody ::= ( S? '/>' ) | ( S? '>' (Char* - (char* '<')) CDSect?)* ETag | <TRANSLATION_ERROR> CDSect

Callers 1

parseElementsMethod · 0.95

Calls 5

parseScriptTextMethod · 0.95
jspErrorMethod · 0.65
markMethod · 0.45
skipUntilMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected