gecko-dev/js/js2/java/JSIdentifier.java

23 строки
419 B
Java
Исходник Обычный вид История

1999-05-26 01:50:03 +04:00
class JSIdentifier extends JSString {
JSIdentifier(String s)
{
super(s);
}
String print(String indent)
{
return indent + "JSIdentifier : " + s + "\n";
}
1999-05-28 23:00:48 +04:00
JSValue eval(Environment theEnv)
1999-05-26 01:50:03 +04:00
{
1999-05-28 23:00:48 +04:00
return theEnv.scope.getProp(theEnv, this);
1999-05-26 01:50:03 +04:00
}
1999-05-28 23:00:48 +04:00
JSReference evalLHS(Environment theEnv)
1999-05-26 01:50:03 +04:00
{
1999-05-28 23:00:48 +04:00
return new JSReference(theEnv.scope, this);
1999-05-26 01:50:03 +04:00
}
}