mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
23 lines
419 B
Java
23 lines
419 B
Java
class JSIdentifier extends JSString {
|
|
|
|
JSIdentifier(String s)
|
|
{
|
|
super(s);
|
|
}
|
|
|
|
String print(String indent)
|
|
{
|
|
return indent + "JSIdentifier : " + s + "\n";
|
|
}
|
|
|
|
JSValue eval(Environment theEnv)
|
|
{
|
|
return theEnv.scope.getProp(theEnv, this);
|
|
}
|
|
|
|
JSReference evalLHS(Environment theEnv)
|
|
{
|
|
return new JSReference(theEnv.scope, this);
|
|
}
|
|
|
|
} |