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

Method ctorTypes

src/jvm/clojure/lang/Compiler.java:4858–4872  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4856
4857
4858 Type[] ctorTypes(){
4859 IPersistentVector tv = !supportsMeta()?PersistentVector.EMPTY:RT.vector(IPERSISTENTMAP_TYPE);
4860 for(ISeq s = RT.keys(closes); s != null; s = s.next())
4861 {
4862 LocalBinding lb = (LocalBinding) s.first();
4863 if(lb.getPrimitiveType() != null)
4864 tv = tv.cons(Type.getType(lb.getPrimitiveType()));
4865 else
4866 tv = tv.cons(OBJECT_TYPE);
4867 }
4868 Type[] ret = new Type[tv.count()];
4869 for(int i = 0; i < tv.count(); i++)
4870 ret[i] = (Type) tv.nth(i);
4871 return ret;
4872 }
4873
4874 void compile(String superName, String[] interfaceNames, boolean oneTimeUse) throws IOException{
4875 //create bytecode for a class

Callers 4

compileMethod · 0.95
emitMethod · 0.95
compileStubMethod · 0.80
emitStaticsMethod · 0.80

Calls 10

supportsMetaMethod · 0.95
vectorMethod · 0.95
keysMethod · 0.95
nextMethod · 0.95
firstMethod · 0.95
getPrimitiveTypeMethod · 0.95
consMethod · 0.95
getTypeMethod · 0.95
countMethod · 0.65
nthMethod · 0.65

Tested by

no test coverage detected