* UnaryOp.cs: inherit from Exp now.
* Plus.cs: Don't throw the exception when calling constructor, let
it build the default handler. Return a new object when calling
EvaluatePlus until properly implemented.
* NumericUnary.cs: added new Resolve.
* NumericBinary.cs: assign operator val at ctr. Return a new
object when calling EvaluateNumericBinary until properly
implemented. Added Resolve.
* Equality.cs: added ctr and return false for EvaluateEquality
until properly implemented. Added Resolve's functions.
* Block.cs (Resolve): That check was not necessary.
svn path=/trunk/mcs/; revision=22190
2004-01-16 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
+ * UnaryOp.cs: inherit from Exp now.
+ * Plus.cs: Don't throw the exception when calling constructor, let
+ it build the default handler. Return a new object when calling
+ EvaluatePlus until properly implemented.
+
+ * NumericUnary.cs: added new Resolve.
+ * NumericBinary.cs: assign operator val at ctr. Return a new
+ object when calling EvaluateNumericBinary until properly
+ implemented. Added Resolve.
+ * Equality.cs: added ctr and return false for EvaluateEquality
+ until properly implemented. Added Resolve's functions.
+
* Block.cs (Resolve): That check was not necessary.
* InstanceOf.cs, PostOrPrefixOperator.cs, Relational.cs,
using System;
using System.Text;
+using System.Reflection.Emit;
namespace Microsoft.JScript {
throw new NotImplementedException ();
}
+ public Equality (int i)
+ {
+ current_op = (JSToken) i;
+ }
public bool EvaluateEquality (object v1, object v2)
{
- throw new NotImplementedException ();
+ return false;
}
internal override bool Resolve (IdentificationTable context)
{
- throw new NotImplementedException ();
+ return true;
}
+ internal override bool Resolve (IdentificationTable context, bool no_effect)
+ {
+ throw new NotImplementedException ();
+ }
+
internal override void Emit (EmitContext ec)
{
throw new NotImplementedException ();
public sealed class NumericBinary : BinaryOp {
public NumericBinary (int operatorTok)
- {
- throw new NotImplementedException ();
+ {
+ current_op = (JSToken) operatorTok;
}
-
public object EvaluateNumericBinary (object v1, object v2)
{
- throw new NotImplementedException ();
+ return new object ();
}
throw new NotImplementedException ();
}
+ internal override bool Resolve (IdentificationTable context, bool no_effect)
+ {
+ this.no_effect = no_effect;
+ return Resolve (context);
+ }
+
internal override void Emit (EmitContext ec)
{
throw new NotImplementedException ();
throw new NotImplementedException ();
}
+ internal override bool Resolve (IdentificationTable context, bool no_effect)
+ {
+ throw new NotImplementedException ();
+ }
+
internal override void Emit (EmitContext ec)
{
throw new NotImplementedException ();
public Plus ()
{
- throw new NotImplementedException ();
}
-
public object EvaluatePlus (object v1, object v2)
{
- throw new NotImplementedException ();
+ return new object ();
}
-
public static object DoOp (object v1, object v2)
{
throw new NotImplementedException ();
throw new NotImplementedException ();
}
+ internal override bool Resolve (IdentificationTable context, bool no_effect)
+ {
+ throw new NotImplementedException ();
+ }
+
internal override void Emit (EmitContext ec)
{
throw new NotImplementedException ();
namespace Microsoft.JScript {
- public abstract class UnaryOp : AST {
+ public abstract class UnaryOp : Exp {
internal AST operand;
internal JSToken oper;
}
-}
\ No newline at end of file
+}