public class NullLiteral extends MagicLiteral {
- static final char[] source = {'n' , 'u' , 'l' , 'l'};
+ static final char[] source = { 'n', 'u', 'l', 'l' };
- public NullLiteral(int s , int e) {
+ public NullLiteral(int s, int e) {
- super(s,e);
+ super(s, e);
}
public void computeConstant() {
-
- constant = NotAConstant;
+
+ constant = NotAConstant;
}
/**
* Code generation for the null literal
- *
- * @param currentScope net.sourceforge.phpdt.internal.compiler.lookup.BlockScope
- * @param codeStream net.sourceforge.phpdt.internal.compiler.codegen.CodeStream
- * @param valueRequired boolean
- */
-// public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
-// int pc = codeStream.position;
-// if (valueRequired)
-// codeStream.aconst_null();
-// codeStream.recordPositionsFrom(pc, this.sourceStart);
-// }
+ *
+ * @param currentScope
+ * net.sourceforge.phpdt.internal.compiler.lookup.BlockScope
+ * @param codeStream
+ * net.sourceforge.phpdt.internal.compiler.codegen.CodeStream
+ * @param valueRequired
+ * boolean
+ */
+ // public void generateCode(BlockScope currentScope, CodeStream codeStream,
+ // boolean valueRequired) {
+ // int pc = codeStream.position;
+ // if (valueRequired)
+ // codeStream.aconst_null();
+ // codeStream.recordPositionsFrom(pc, this.sourceStart);
+ // }
public TypeBinding literalType(BlockScope scope) {
return NullBinding;
}