You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/src/types.rs
-8
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,6 @@ pub enum Stmt {
90
90
pubenumStmtExpr{
91
91
Assign(Expr,Expr),// first the name of the variable, then the value it is being assigned to
92
92
New(Type,Vec<Expr>),// first the class type, that should be instantiated, then the list of arguments for the constructor
93
-
// FIXME: This needs to be changed to represent more how the JVM handles method calls. We need a class(at least name) and a method name with the typed arguments inside it, also the return type
94
-
// #2 = Methodref #3.#17 // MethodTest.y:(I)I
95
-
// #3 = Class #18 // MethodTest
96
-
// #17 = NameAndType #19:#20 // y:(I)I
97
-
// #18 = Utf8 MethodTest
98
-
// #19 = Utf8 y
99
-
// #20 = Utf8 (I)I
100
93
MethodCall(Expr,String,Vec<Expr>),// first the object to which the method belongs (e.g. Expr::This), then the name of the method and lastly the list of arguments for the method call
101
94
TypedStmtExpr(Box<StmtExpr>,Type),
102
95
}
@@ -272,7 +265,6 @@ impl Type {
272
265
Type::Bool => "Z",
273
266
Type::String => "Ljava/lang/String;",
274
267
Type::Void => "V",
275
-
// FIXME: Either the class has the formatting `L<class>;' or we have to add it here.
0 commit comments