MCPcopy Index your code
hub / github.com/clojure/clojure / invoke

Method invoke

src/jvm/clojure/lang/LispReader.java:543–560  ·  view source on GitHub ↗
(Object reader, Object doublequote, Object opts, Object pendingForms)

Source from the content-addressed store, hash-verified

541 static StringReader stringrdr = new StringReader();
542
543 public Object invoke(Object reader, Object doublequote, Object opts, Object pendingForms) {
544 StringBuilder sb = new StringBuilder();
545 Reader r = (Reader) reader;
546 for(int ch = read1(r); ch != '"'; ch = read1(r))
547 {
548 if(ch == -1)
549 throw Util.runtimeException("EOF while reading regex");
550 sb.append( (char) ch );
551 if(ch == '\\') //escape
552 {
553 ch = read1(r);
554 if(ch == -1)
555 throw Util.runtimeException("EOF while reading regex");
556 sb.append( (char) ch ) ;
557 }
558 }
559 return Pattern.compile(sb.toString());
560 }
561}
562
563public static class StringReader extends AFn{

Callers

nothing calls this directly

Calls 5

runtimeExceptionMethod · 0.95
appendMethod · 0.80
read1Method · 0.45
compileMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected