Skip to content

Commit

Permalink
Showing 7 changed files with 0 additions and 649 deletions.
120 changes: 0 additions & 120 deletions truffle/src/main/java/org/jruby/truffle/parser/ast/util/SexpMaker.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -42,10 +42,6 @@ public DummyDynamicScope(StaticScope staticScope, DynamicScope parent) {
super(staticScope, parent);
}

public DummyDynamicScope(StaticScope staticScope) {
super(staticScope);
}

public void growIfNeeded() {
growIfNeeded(SIZE, GROW_ERROR);
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -31,28 +31,15 @@
* Gives instances of static scopes based on compile mode.
*/
public class StaticScopeFactory {
private final StaticScope dummyScope;

public StaticScopeFactory() {
dummyScope = new StaticScope(StaticScope.Type.LOCAL, null);
}

public StaticScope newBlockScope(StaticScope parent, String file) {
return new StaticScope(StaticScope.Type.BLOCK, parent, file);
}

public StaticScope newBlockScope(StaticScope parent) {
return new StaticScope(StaticScope.Type.BLOCK, parent);
}

public StaticScope newBlockScope(StaticScope parent, String[] names) {
return new StaticScope(StaticScope.Type.BLOCK, parent, names);
}

public StaticScope newEvalScope(StaticScope parent) {
return new StaticScope(StaticScope.Type.EVAL, parent);
}

public StaticScope newEvalScope(StaticScope parent, String[] names) {
return new StaticScope(StaticScope.Type.EVAL, parent, names);
}
@@ -69,20 +56,4 @@ public StaticScope newLocalScope(StaticScope parent, String[] names) {
return new StaticScope(StaticScope.Type.LOCAL, parent, names);
}

// We only call these from inside IR impl (IR is all or nothing)
public static StaticScope newIRBlockScope(StaticScope parent) {
return new StaticScope(StaticScope.Type.BLOCK, parent);
}

public static StaticScope newStaticScope(StaticScope parent, StaticScope.Type type, String[] names) {
if(names == null) {
return new StaticScope(type, parent);
} else {
return new StaticScope(type, parent, names);
}
}

public StaticScope getDummyScope() {
return dummyScope;
}
}

0 comments on commit 8152f18

Please sign in to comment.