[Dashg-commit] SF.net SVN: dashg:[49] trunk/dashg/src/com/mebigfatguy/dashg/ DashGClassSourcePrinti
Status: Pre-Alpha
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-02 05:11:14
|
Revision: 49
http://dashg.svn.sourceforge.net/dashg/?rev=49&view=rev
Author: dbrosius
Date: 2010-01-02 05:11:06 +0000 (Sat, 02 Jan 2010)
Log Message:
-----------
fix linenumbers
Modified Paths:
--------------
trunk/dashg/src/com/mebigfatguy/dashg/DashGClassSourcePrintingVisitor.java
Modified: trunk/dashg/src/com/mebigfatguy/dashg/DashGClassSourcePrintingVisitor.java
===================================================================
--- trunk/dashg/src/com/mebigfatguy/dashg/DashGClassSourcePrintingVisitor.java 2010-01-02 04:55:14 UTC (rev 48)
+++ trunk/dashg/src/com/mebigfatguy/dashg/DashGClassSourcePrintingVisitor.java 2010-01-02 05:11:06 UTC (rev 49)
@@ -64,7 +64,7 @@
pw.println("package " + packageName + ";");
pw.println();
- lineNumber += 2;
+ inc(2);
} else {
packageName = null;
clsName = name;
@@ -86,7 +86,7 @@
pw.println(" {");
- ++lineNumber;
+ inc();
cw.visit(version, access, name, signature, superName, interfaces);
}
@@ -103,7 +103,7 @@
@Override
public void visitEnd() {
pw.println("}");
- ++lineNumber;
+ inc();
}
@Override
@@ -114,7 +114,7 @@
if (value != null)
pw.print(" = " + value);
pw.println(";");
- ++lineNumber;
+ inc();
return null;
}
@@ -148,12 +148,12 @@
if ((access & Opcodes.ACC_ABSTRACT) != 0) {
pw.println(";");
- lineNumber += 1;
+ inc(2);
} else {
pw.println("{");
pw.println("\t\tint pc;");
pw.println();
- lineNumber += 3;
+ inc(4);
}
return new DashGMethodSourcePrintingVisitor(cw.visitMethod(access, name, desc, signature, exceptions), pw, this);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|