git-svn-id: svn://10.0.0.236/trunk@34357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
1999-06-09 03:10:30 +00:00
parent 06986144aa
commit 44ea3bf179

View File

@@ -0,0 +1,27 @@
class JSName extends ExpressionNode {
JSName(JSIdentifier anID, int aScope)
{
id = anID;
scope = aScope; // this is the scope that the name was used in
}
String print(String indent)
{
return indent + "JSName : " + id.s + ", scope : " + scope + "\n";
}
JSReference evalLHS(Environment theEnv)
{
return new JSReference(theEnv.scope, id);
}
JSValue eval(Environment theEnv)
{
return theEnv.scope.getProp(theEnv, id);
}
JSIdentifier id;
int scope;
}