fixes for parse errors in JS and HTML

This commit is contained in:
Julian Dolby 2013-03-01 10:08:30 -05:00
parent 87b856928c
commit 6bb51a6e58
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#$
>>> <this is very <<buggy
<tag silly="this is not good

View File

@ -0,0 +1,5 @@
<HTML>
<SCRIPT language="javascript">
this is so not a valid JS program!
</SCRIPT>
</HTML>

View File

@ -0,0 +1,19 @@
package com.ibm.wala.cast.js.html;
import java.io.PrintStream;
import com.ibm.wala.cast.tree.CAstSourcePositionMap.Position;
public class EmptyFileMapping implements FileMapping {
@Override
public IncludedPosition getIncludedPosition(Position line) {
return null;
}
@Override
public void dump(PrintStream ps) {
ps.println("empty mapping");
}
}