mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Move ast package off javascript
This commit is contained in:
parent
52ace0c252
commit
789119e6ea
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
public interface ExprVisitor {
|
public interface ExprVisitor {
|
||||||
void visit(BinaryExpr expr);
|
void visit(BinaryExpr expr);
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.teavm.model.ValueType;
|
import org.teavm.model.ValueType;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.teavm.model.ValueType;
|
import org.teavm.model.ValueType;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2014 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.teavm.model.FieldReference;
|
import org.teavm.model.FieldReference;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2014 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2013 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.teavm.model.instructions.ArrayElementType;
|
import org.teavm.model.instructions.ArrayElementType;
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript.ast;
|
package org.teavm.ast;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
51
core/src/main/java/org/teavm/cache/AstIO.java
vendored
51
core/src/main/java/org/teavm/cache/AstIO.java
vendored
|
@ -18,8 +18,55 @@ package org.teavm.cache;
|
||||||
import java.io.DataInput;
|
import java.io.DataInput;
|
||||||
import java.io.DataOutput;
|
import java.io.DataOutput;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.EnumSet;
|
||||||
import org.teavm.javascript.ast.*;
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
|
import org.teavm.ast.AsyncMethodPart;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BinaryOperation;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.InvocationType;
|
||||||
|
import org.teavm.ast.MethodNode;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.NodeLocation;
|
||||||
|
import org.teavm.ast.NodeModifier;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.RegularMethodNode;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnaryOperation;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
import org.teavm.model.FieldReference;
|
import org.teavm.model.FieldReference;
|
||||||
import org.teavm.model.MethodDescriptor;
|
import org.teavm.model.MethodDescriptor;
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
|
|
|
@ -15,10 +15,59 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.cache;
|
package org.teavm.cache;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.BufferedInputStream;
|
||||||
import java.util.*;
|
import java.io.BufferedOutputStream;
|
||||||
|
import java.io.DataInput;
|
||||||
|
import java.io.DataInputStream;
|
||||||
|
import java.io.DataOutputStream;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
|
import org.teavm.ast.AsyncMethodPart;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.RegularMethodNode;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
import org.teavm.javascript.MethodNodeCache;
|
import org.teavm.javascript.MethodNodeCache;
|
||||||
import org.teavm.javascript.ast.*;
|
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
import org.teavm.parsing.ClassDateProvider;
|
import org.teavm.parsing.ClassDateProvider;
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,25 @@ package org.teavm.javascript;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -18,7 +18,39 @@ package org.teavm.javascript;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,24 @@
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -15,8 +15,30 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.HashMap;
|
||||||
import org.teavm.javascript.ast.*;
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,7 +16,25 @@
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,28 +28,28 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
|
import org.teavm.ast.AsyncMethodPart;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.ClassNode;
|
||||||
|
import org.teavm.ast.FieldNode;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.MethodNode;
|
||||||
|
import org.teavm.ast.NativeMethodNode;
|
||||||
|
import org.teavm.ast.NodeLocation;
|
||||||
|
import org.teavm.ast.NodeModifier;
|
||||||
|
import org.teavm.ast.RegularMethodNode;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
import org.teavm.cache.NoCache;
|
import org.teavm.cache.NoCache;
|
||||||
import org.teavm.common.Graph;
|
import org.teavm.common.Graph;
|
||||||
import org.teavm.common.GraphIndexer;
|
import org.teavm.common.GraphIndexer;
|
||||||
import org.teavm.common.Loop;
|
import org.teavm.common.Loop;
|
||||||
import org.teavm.common.LoopGraph;
|
import org.teavm.common.LoopGraph;
|
||||||
import org.teavm.common.RangeTree;
|
import org.teavm.common.RangeTree;
|
||||||
import org.teavm.javascript.ast.AsyncMethodNode;
|
|
||||||
import org.teavm.javascript.ast.AsyncMethodPart;
|
|
||||||
import org.teavm.javascript.ast.BlockStatement;
|
|
||||||
import org.teavm.javascript.ast.ClassNode;
|
|
||||||
import org.teavm.javascript.ast.FieldNode;
|
|
||||||
import org.teavm.javascript.ast.GotoPartStatement;
|
|
||||||
import org.teavm.javascript.ast.IdentifiedStatement;
|
|
||||||
import org.teavm.javascript.ast.MethodNode;
|
|
||||||
import org.teavm.javascript.ast.NativeMethodNode;
|
|
||||||
import org.teavm.javascript.ast.NodeLocation;
|
|
||||||
import org.teavm.javascript.ast.NodeModifier;
|
|
||||||
import org.teavm.javascript.ast.RegularMethodNode;
|
|
||||||
import org.teavm.javascript.ast.SequentialStatement;
|
|
||||||
import org.teavm.javascript.ast.Statement;
|
|
||||||
import org.teavm.javascript.ast.TryCatchStatement;
|
|
||||||
import org.teavm.javascript.ast.WhileStatement;
|
|
||||||
import org.teavm.javascript.spi.GeneratedBy;
|
import org.teavm.javascript.spi.GeneratedBy;
|
||||||
import org.teavm.javascript.spi.Generator;
|
import org.teavm.javascript.spi.Generator;
|
||||||
import org.teavm.javascript.spi.InjectedBy;
|
import org.teavm.javascript.spi.InjectedBy;
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import org.teavm.javascript.ast.AsyncMethodNode;
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
import org.teavm.javascript.ast.RegularMethodNode;
|
import org.teavm.ast.RegularMethodNode;
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,24 @@
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -15,7 +15,11 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BinaryOperation;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnaryOperation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,23 +16,23 @@
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.teavm.javascript.ast.BinaryExpr;
|
import org.teavm.ast.BinaryExpr;
|
||||||
import org.teavm.javascript.ast.ConditionalExpr;
|
import org.teavm.ast.ConditionalExpr;
|
||||||
import org.teavm.javascript.ast.ConditionalStatement;
|
import org.teavm.ast.ConditionalStatement;
|
||||||
import org.teavm.javascript.ast.ConstantExpr;
|
import org.teavm.ast.ConstantExpr;
|
||||||
import org.teavm.javascript.ast.Expr;
|
import org.teavm.ast.Expr;
|
||||||
import org.teavm.javascript.ast.ExprVisitor;
|
import org.teavm.ast.ExprVisitor;
|
||||||
import org.teavm.javascript.ast.InstanceOfExpr;
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
import org.teavm.javascript.ast.InvocationExpr;
|
import org.teavm.ast.InvocationExpr;
|
||||||
import org.teavm.javascript.ast.NewArrayExpr;
|
import org.teavm.ast.NewArrayExpr;
|
||||||
import org.teavm.javascript.ast.NewExpr;
|
import org.teavm.ast.NewExpr;
|
||||||
import org.teavm.javascript.ast.NewMultiArrayExpr;
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
import org.teavm.javascript.ast.QualificationExpr;
|
import org.teavm.ast.QualificationExpr;
|
||||||
import org.teavm.javascript.ast.Statement;
|
import org.teavm.ast.Statement;
|
||||||
import org.teavm.javascript.ast.SubscriptExpr;
|
import org.teavm.ast.SubscriptExpr;
|
||||||
import org.teavm.javascript.ast.UnaryExpr;
|
import org.teavm.ast.UnaryExpr;
|
||||||
import org.teavm.javascript.ast.UnwrapArrayExpr;
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
import org.teavm.javascript.ast.VariableExpr;
|
import org.teavm.ast.VariableExpr;
|
||||||
|
|
||||||
public class ExpressionSideEffectDecomposer implements ExprVisitor {
|
public class ExpressionSideEffectDecomposer implements ExprVisitor {
|
||||||
private List<Statement> target;
|
private List<Statement> target;
|
||||||
|
|
|
@ -17,8 +17,8 @@ package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.teavm.javascript.ast.AsyncMethodNode;
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
import org.teavm.javascript.ast.RegularMethodNode;
|
import org.teavm.ast.RegularMethodNode;
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import org.teavm.javascript.ast.AsyncMethodNode;
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
import org.teavm.javascript.ast.RegularMethodNode;
|
import org.teavm.ast.RegularMethodNode;
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,9 +17,57 @@ package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
|
import org.teavm.ast.AsyncMethodPart;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ClassNode;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.FieldNode;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.MethodNode;
|
||||||
|
import org.teavm.ast.MethodNodeVisitor;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NativeMethodNode;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.NodeModifier;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.RegularMethodNode;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
import org.teavm.codegen.NameFrequencyConsumer;
|
import org.teavm.codegen.NameFrequencyConsumer;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.model.ClassReader;
|
||||||
import org.teavm.model.*;
|
import org.teavm.model.ClassReaderSource;
|
||||||
|
import org.teavm.model.ElementModifier;
|
||||||
|
import org.teavm.model.FieldReference;
|
||||||
|
import org.teavm.model.MethodDescriptor;
|
||||||
|
import org.teavm.model.MethodReader;
|
||||||
|
import org.teavm.model.MethodReference;
|
||||||
|
import org.teavm.model.ValueType;
|
||||||
|
|
||||||
class NameFrequencyEstimator implements StatementVisitor, ExprVisitor, MethodNodeVisitor {
|
class NameFrequencyEstimator implements StatementVisitor, ExprVisitor, MethodNodeVisitor {
|
||||||
private final NameFrequencyConsumer consumer;
|
private final NameFrequencyConsumer consumer;
|
||||||
|
|
|
@ -17,10 +17,10 @@ package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.BitSet;
|
import java.util.BitSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
|
import org.teavm.ast.AsyncMethodPart;
|
||||||
|
import org.teavm.ast.RegularMethodNode;
|
||||||
import org.teavm.common.Graph;
|
import org.teavm.common.Graph;
|
||||||
import org.teavm.javascript.ast.AsyncMethodNode;
|
|
||||||
import org.teavm.javascript.ast.AsyncMethodPart;
|
|
||||||
import org.teavm.javascript.ast.RegularMethodNode;
|
|
||||||
import org.teavm.model.Instruction;
|
import org.teavm.model.Instruction;
|
||||||
import org.teavm.model.Program;
|
import org.teavm.model.Program;
|
||||||
import org.teavm.model.Variable;
|
import org.teavm.model.Variable;
|
||||||
|
|
|
@ -15,9 +15,47 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BinaryOperation;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnaryOperation;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
class OptimizingVisitor implements StatementVisitor, ExprVisitor {
|
class OptimizingVisitor implements StatementVisitor, ExprVisitor {
|
||||||
private Expr resultExpr;
|
private Expr resultExpr;
|
||||||
|
|
|
@ -18,7 +18,25 @@ package org.teavm.javascript;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -15,7 +15,25 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.IdentifiedStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,6 +28,51 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.AsyncMethodNode;
|
||||||
|
import org.teavm.ast.AsyncMethodPart;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BinaryOperation;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ClassNode;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.FieldNode;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.InvocationType;
|
||||||
|
import org.teavm.ast.MethodNode;
|
||||||
|
import org.teavm.ast.MethodNodeVisitor;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NativeMethodNode;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.NodeLocation;
|
||||||
|
import org.teavm.ast.NodeModifier;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.RegularMethodNode;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
import org.teavm.codegen.NamingException;
|
import org.teavm.codegen.NamingException;
|
||||||
import org.teavm.codegen.NamingOrderer;
|
import org.teavm.codegen.NamingOrderer;
|
||||||
import org.teavm.codegen.NamingStrategy;
|
import org.teavm.codegen.NamingStrategy;
|
||||||
|
@ -37,51 +82,6 @@ import org.teavm.debugging.information.DebugInformationEmitter;
|
||||||
import org.teavm.debugging.information.DeferredCallSite;
|
import org.teavm.debugging.information.DeferredCallSite;
|
||||||
import org.teavm.debugging.information.DummyDebugInformationEmitter;
|
import org.teavm.debugging.information.DummyDebugInformationEmitter;
|
||||||
import org.teavm.diagnostics.Diagnostics;
|
import org.teavm.diagnostics.Diagnostics;
|
||||||
import org.teavm.javascript.ast.AssignmentStatement;
|
|
||||||
import org.teavm.javascript.ast.AsyncMethodNode;
|
|
||||||
import org.teavm.javascript.ast.AsyncMethodPart;
|
|
||||||
import org.teavm.javascript.ast.BinaryExpr;
|
|
||||||
import org.teavm.javascript.ast.BinaryOperation;
|
|
||||||
import org.teavm.javascript.ast.BlockStatement;
|
|
||||||
import org.teavm.javascript.ast.BreakStatement;
|
|
||||||
import org.teavm.javascript.ast.ClassNode;
|
|
||||||
import org.teavm.javascript.ast.ConditionalExpr;
|
|
||||||
import org.teavm.javascript.ast.ConditionalStatement;
|
|
||||||
import org.teavm.javascript.ast.ConstantExpr;
|
|
||||||
import org.teavm.javascript.ast.ContinueStatement;
|
|
||||||
import org.teavm.javascript.ast.Expr;
|
|
||||||
import org.teavm.javascript.ast.ExprVisitor;
|
|
||||||
import org.teavm.javascript.ast.FieldNode;
|
|
||||||
import org.teavm.javascript.ast.GotoPartStatement;
|
|
||||||
import org.teavm.javascript.ast.InitClassStatement;
|
|
||||||
import org.teavm.javascript.ast.InstanceOfExpr;
|
|
||||||
import org.teavm.javascript.ast.InvocationExpr;
|
|
||||||
import org.teavm.javascript.ast.InvocationType;
|
|
||||||
import org.teavm.javascript.ast.MethodNode;
|
|
||||||
import org.teavm.javascript.ast.MethodNodeVisitor;
|
|
||||||
import org.teavm.javascript.ast.MonitorEnterStatement;
|
|
||||||
import org.teavm.javascript.ast.MonitorExitStatement;
|
|
||||||
import org.teavm.javascript.ast.NativeMethodNode;
|
|
||||||
import org.teavm.javascript.ast.NewArrayExpr;
|
|
||||||
import org.teavm.javascript.ast.NewExpr;
|
|
||||||
import org.teavm.javascript.ast.NewMultiArrayExpr;
|
|
||||||
import org.teavm.javascript.ast.NodeLocation;
|
|
||||||
import org.teavm.javascript.ast.NodeModifier;
|
|
||||||
import org.teavm.javascript.ast.QualificationExpr;
|
|
||||||
import org.teavm.javascript.ast.RegularMethodNode;
|
|
||||||
import org.teavm.javascript.ast.ReturnStatement;
|
|
||||||
import org.teavm.javascript.ast.SequentialStatement;
|
|
||||||
import org.teavm.javascript.ast.Statement;
|
|
||||||
import org.teavm.javascript.ast.StatementVisitor;
|
|
||||||
import org.teavm.javascript.ast.SubscriptExpr;
|
|
||||||
import org.teavm.javascript.ast.SwitchClause;
|
|
||||||
import org.teavm.javascript.ast.SwitchStatement;
|
|
||||||
import org.teavm.javascript.ast.ThrowStatement;
|
|
||||||
import org.teavm.javascript.ast.TryCatchStatement;
|
|
||||||
import org.teavm.javascript.ast.UnaryExpr;
|
|
||||||
import org.teavm.javascript.ast.UnwrapArrayExpr;
|
|
||||||
import org.teavm.javascript.ast.VariableExpr;
|
|
||||||
import org.teavm.javascript.ast.WhileStatement;
|
|
||||||
import org.teavm.javascript.spi.GeneratorContext;
|
import org.teavm.javascript.spi.GeneratorContext;
|
||||||
import org.teavm.javascript.spi.InjectedBy;
|
import org.teavm.javascript.spi.InjectedBy;
|
||||||
import org.teavm.javascript.spi.Injector;
|
import org.teavm.javascript.spi.Injector;
|
||||||
|
|
|
@ -15,13 +15,78 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BinaryOperation;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NodeLocation;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.UnaryOperation;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
import org.teavm.common.GraphIndexer;
|
import org.teavm.common.GraphIndexer;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.model.BasicBlock;
|
||||||
import org.teavm.javascript.ast.BinaryOperation;
|
import org.teavm.model.ClassHolderSource;
|
||||||
import org.teavm.model.*;
|
import org.teavm.model.InvokeDynamicInstruction;
|
||||||
import org.teavm.model.instructions.*;
|
import org.teavm.model.MethodDescriptor;
|
||||||
|
import org.teavm.model.MethodReference;
|
||||||
|
import org.teavm.model.Program;
|
||||||
|
import org.teavm.model.ValueType;
|
||||||
|
import org.teavm.model.Variable;
|
||||||
|
import org.teavm.model.instructions.ArrayLengthInstruction;
|
||||||
|
import org.teavm.model.instructions.AssignInstruction;
|
||||||
|
import org.teavm.model.instructions.BinaryBranchingInstruction;
|
||||||
|
import org.teavm.model.instructions.BinaryInstruction;
|
||||||
|
import org.teavm.model.instructions.BranchingInstruction;
|
||||||
|
import org.teavm.model.instructions.CastInstruction;
|
||||||
|
import org.teavm.model.instructions.CastIntegerInstruction;
|
||||||
|
import org.teavm.model.instructions.CastNumberInstruction;
|
||||||
|
import org.teavm.model.instructions.ClassConstantInstruction;
|
||||||
|
import org.teavm.model.instructions.CloneArrayInstruction;
|
||||||
|
import org.teavm.model.instructions.ConstructArrayInstruction;
|
||||||
|
import org.teavm.model.instructions.ConstructInstruction;
|
||||||
|
import org.teavm.model.instructions.ConstructMultiArrayInstruction;
|
||||||
|
import org.teavm.model.instructions.DoubleConstantInstruction;
|
||||||
|
import org.teavm.model.instructions.EmptyInstruction;
|
||||||
|
import org.teavm.model.instructions.ExitInstruction;
|
||||||
|
import org.teavm.model.instructions.FloatConstantInstruction;
|
||||||
|
import org.teavm.model.instructions.GetElementInstruction;
|
||||||
|
import org.teavm.model.instructions.GetFieldInstruction;
|
||||||
|
import org.teavm.model.instructions.InitClassInstruction;
|
||||||
|
import org.teavm.model.instructions.InstructionVisitor;
|
||||||
|
import org.teavm.model.instructions.IntegerConstantInstruction;
|
||||||
import org.teavm.model.instructions.InvocationType;
|
import org.teavm.model.instructions.InvocationType;
|
||||||
|
import org.teavm.model.instructions.InvokeInstruction;
|
||||||
|
import org.teavm.model.instructions.IsInstanceInstruction;
|
||||||
|
import org.teavm.model.instructions.JumpInstruction;
|
||||||
|
import org.teavm.model.instructions.LongConstantInstruction;
|
||||||
|
import org.teavm.model.instructions.MonitorEnterInstruction;
|
||||||
|
import org.teavm.model.instructions.MonitorExitInstruction;
|
||||||
|
import org.teavm.model.instructions.NegateInstruction;
|
||||||
|
import org.teavm.model.instructions.NullCheckInstruction;
|
||||||
|
import org.teavm.model.instructions.NullConstantInstruction;
|
||||||
|
import org.teavm.model.instructions.NumericOperandType;
|
||||||
|
import org.teavm.model.instructions.PutElementInstruction;
|
||||||
|
import org.teavm.model.instructions.PutFieldInstruction;
|
||||||
|
import org.teavm.model.instructions.RaiseInstruction;
|
||||||
|
import org.teavm.model.instructions.StringConstantInstruction;
|
||||||
|
import org.teavm.model.instructions.SwitchInstruction;
|
||||||
|
import org.teavm.model.instructions.SwitchTableEntry;
|
||||||
|
import org.teavm.model.instructions.UnwrapArrayInstruction;
|
||||||
|
|
||||||
class StatementGenerator implements InstructionVisitor {
|
class StatementGenerator implements InstructionVisitor {
|
||||||
private int lastSwitchId;
|
private int lastSwitchId;
|
||||||
|
|
|
@ -16,7 +16,24 @@
|
||||||
package org.teavm.javascript;
|
package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,7 +17,39 @@ package org.teavm.javascript;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.teavm.javascript.ast.*;
|
import org.teavm.ast.AssignmentStatement;
|
||||||
|
import org.teavm.ast.BinaryExpr;
|
||||||
|
import org.teavm.ast.BlockStatement;
|
||||||
|
import org.teavm.ast.BreakStatement;
|
||||||
|
import org.teavm.ast.ConditionalExpr;
|
||||||
|
import org.teavm.ast.ConditionalStatement;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.ContinueStatement;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.ExprVisitor;
|
||||||
|
import org.teavm.ast.GotoPartStatement;
|
||||||
|
import org.teavm.ast.InitClassStatement;
|
||||||
|
import org.teavm.ast.InstanceOfExpr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
|
import org.teavm.ast.MonitorEnterStatement;
|
||||||
|
import org.teavm.ast.MonitorExitStatement;
|
||||||
|
import org.teavm.ast.NewArrayExpr;
|
||||||
|
import org.teavm.ast.NewExpr;
|
||||||
|
import org.teavm.ast.NewMultiArrayExpr;
|
||||||
|
import org.teavm.ast.QualificationExpr;
|
||||||
|
import org.teavm.ast.ReturnStatement;
|
||||||
|
import org.teavm.ast.SequentialStatement;
|
||||||
|
import org.teavm.ast.Statement;
|
||||||
|
import org.teavm.ast.StatementVisitor;
|
||||||
|
import org.teavm.ast.SubscriptExpr;
|
||||||
|
import org.teavm.ast.SwitchClause;
|
||||||
|
import org.teavm.ast.SwitchStatement;
|
||||||
|
import org.teavm.ast.ThrowStatement;
|
||||||
|
import org.teavm.ast.TryCatchStatement;
|
||||||
|
import org.teavm.ast.UnaryExpr;
|
||||||
|
import org.teavm.ast.UnwrapArrayExpr;
|
||||||
|
import org.teavm.ast.VariableExpr;
|
||||||
|
import org.teavm.ast.WhileStatement;
|
||||||
|
|
||||||
class UnusedVariableEliminator implements ExprVisitor, StatementVisitor {
|
class UnusedVariableEliminator implements ExprVisitor, StatementVisitor {
|
||||||
private final int[] variables;
|
private final int[] variables;
|
||||||
|
|
|
@ -17,10 +17,10 @@ package org.teavm.javascript.spi;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
import org.teavm.codegen.SourceWriter;
|
import org.teavm.codegen.SourceWriter;
|
||||||
import org.teavm.common.ServiceRepository;
|
import org.teavm.common.ServiceRepository;
|
||||||
import org.teavm.javascript.Precedence;
|
import org.teavm.javascript.Precedence;
|
||||||
import org.teavm.javascript.ast.Expr;
|
|
||||||
import org.teavm.model.ListableClassReaderSource;
|
import org.teavm.model.ListableClassReaderSource;
|
||||||
import org.teavm.model.ValueType;
|
import org.teavm.model.ValueType;
|
||||||
|
|
||||||
|
|
|
@ -16,15 +16,15 @@
|
||||||
package org.teavm.jso.impl;
|
package org.teavm.jso.impl;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import org.teavm.ast.ConstantExpr;
|
||||||
|
import org.teavm.ast.Expr;
|
||||||
|
import org.teavm.ast.InvocationExpr;
|
||||||
import org.teavm.codegen.SourceWriter;
|
import org.teavm.codegen.SourceWriter;
|
||||||
import org.teavm.dependency.DependencyAgent;
|
import org.teavm.dependency.DependencyAgent;
|
||||||
import org.teavm.dependency.DependencyPlugin;
|
import org.teavm.dependency.DependencyPlugin;
|
||||||
import org.teavm.dependency.MethodDependency;
|
import org.teavm.dependency.MethodDependency;
|
||||||
import org.teavm.javascript.Precedence;
|
import org.teavm.javascript.Precedence;
|
||||||
import org.teavm.javascript.Renderer;
|
import org.teavm.javascript.Renderer;
|
||||||
import org.teavm.javascript.ast.ConstantExpr;
|
|
||||||
import org.teavm.javascript.ast.Expr;
|
|
||||||
import org.teavm.javascript.ast.InvocationExpr;
|
|
||||||
import org.teavm.javascript.spi.Generator;
|
import org.teavm.javascript.spi.Generator;
|
||||||
import org.teavm.javascript.spi.GeneratorContext;
|
import org.teavm.javascript.spi.GeneratorContext;
|
||||||
import org.teavm.javascript.spi.Injector;
|
import org.teavm.javascript.spi.Injector;
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
package org.teavm.platform.plugin;
|
package org.teavm.platform.plugin;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.teavm.javascript.ast.ConstantExpr;
|
import org.teavm.ast.ConstantExpr;
|
||||||
import org.teavm.javascript.ast.Expr;
|
import org.teavm.ast.Expr;
|
||||||
import org.teavm.javascript.spi.Injector;
|
import org.teavm.javascript.spi.Injector;
|
||||||
import org.teavm.javascript.spi.InjectorContext;
|
import org.teavm.javascript.spi.InjectorContext;
|
||||||
import org.teavm.model.MethodReference;
|
import org.teavm.model.MethodReference;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user