зеркало из https://github.com/mozilla/gecko-dev.git
25 строки
460 B
Java
25 строки
460 B
Java
|
class JSIdentifier extends JSString {
|
||
|
|
||
|
JSIdentifier(String s)
|
||
|
{
|
||
|
super(s);
|
||
|
}
|
||
|
|
||
|
String print(String indent)
|
||
|
{
|
||
|
return indent + "JSIdentifier : " + s + "\n";
|
||
|
}
|
||
|
|
||
|
void eval(Environment theEnv)
|
||
|
{
|
||
|
theEnv.theStack.push(this);
|
||
|
theEnv.scope.getProp(theEnv);
|
||
|
}
|
||
|
|
||
|
void evalLHS(Environment theEnv)
|
||
|
{
|
||
|
theEnv.theStack.push(this);
|
||
|
theEnv.theStack.push(theEnv.scope);
|
||
|
}
|
||
|
|
||
|
}
|