From dee62b8d67bc1cf8dd343154296e4ea9ef47d594 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Fri, 23 Jun 2000 04:10:04 +0000 Subject: [PATCH] remove unused file. --- js/js2/JSScope.h | 79 ----------------------------------------------- js2/src/JSScope.h | 79 ----------------------------------------------- 2 files changed, 158 deletions(-) delete mode 100755 js/js2/JSScope.h delete mode 100755 js2/src/JSScope.h diff --git a/js/js2/JSScope.h b/js/js2/JSScope.h deleted file mode 100755 index 70891e70a12f..000000000000 --- a/js/js2/JSScope.h +++ /dev/null @@ -1,79 +0,0 @@ -// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -// -// The contents of this file are subject to the Netscape Public -// License Version 1.1 (the "License"); you may not use this file -// except in compliance with the License. You may obtain a copy of -// the License at http://www.mozilla.org/NPL/ -// -// Software distributed under the License is distributed on an "AS -// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr -// implied. See the License for the specific language governing -// rights and limitations under the License. -// -// The Original Code is the JavaScript 2 Prototype. -// -// The Initial Developer of the Original Code is Netscape -// Communications Corporation. Portions created by Netscape are -// Copyright (C) 1998 Netscape Communications Corporation. All -// Rights Reserved. - -/** - * Opaque reference to a JavaScript object. - */ -class JSObject; - -/** - * Opaque reference to a general JavaScript identifier key. - * This can represent both UNICODE strings, and other more - * efficient representations, such as hashcodes, etc. - */ -class JSIdentifier; - -/** - * Some fundamental constants. - */ -#define JSNULL (0) -#define JSUNDEFINED = ((JSObject*)(-1)) - -/** - * Basic abstraction to associate names with values in a chain of scopes. - * Can represent any kind of scope, including lexical scopes (closures), - * namespaces, and classes. Access control can be implemented - */ -class JSScope { -public: - /** - * Gets the enclosing scope of this scope (if any). - * @return enclosing scope or JSNULL if none. - */ - virtual JSScope* getParent() = 0; - - /** - * Defines a new identifier in the current scope. In a completely static - * model, this may not be possible, and so this operation will be ignored. - * @param start the evaluation scope - * @param id identifier to define - * @param value optional value to associate with id - */ - virtual void defineValue(JSScope* start, JSIdentifier* id, JSObject* value = JSUNDEFINED) = 0; - - /** - * Looks up a value corresponding to the given identifier starting - * with the current scope, and proceeding up the scope chain. If - * the identifier's is not defined in any of the scopes, the value - * JSUNDEFINED is returned. - * @param start the evaluation scope - * @parm id the identifer to lookup - * @return result of lookup or JSUNDEFINED - */ - virtual JSObject* getValue(JSScope* start, JSIdentifier* id) = 0; - - /** - * Associates a value with an identifier in a given scope. - * @param start the evaluation scope - * @param id identifier to assign to - * @param value new value to give to id - * @return old value associated with identifier - */ - virtual JSObject* setValue(JSScope* start, JSIdentifier* id, JSObject* value) = 0; -}; diff --git a/js2/src/JSScope.h b/js2/src/JSScope.h deleted file mode 100755 index 70891e70a12f..000000000000 --- a/js2/src/JSScope.h +++ /dev/null @@ -1,79 +0,0 @@ -// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -// -// The contents of this file are subject to the Netscape Public -// License Version 1.1 (the "License"); you may not use this file -// except in compliance with the License. You may obtain a copy of -// the License at http://www.mozilla.org/NPL/ -// -// Software distributed under the License is distributed on an "AS -// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr -// implied. See the License for the specific language governing -// rights and limitations under the License. -// -// The Original Code is the JavaScript 2 Prototype. -// -// The Initial Developer of the Original Code is Netscape -// Communications Corporation. Portions created by Netscape are -// Copyright (C) 1998 Netscape Communications Corporation. All -// Rights Reserved. - -/** - * Opaque reference to a JavaScript object. - */ -class JSObject; - -/** - * Opaque reference to a general JavaScript identifier key. - * This can represent both UNICODE strings, and other more - * efficient representations, such as hashcodes, etc. - */ -class JSIdentifier; - -/** - * Some fundamental constants. - */ -#define JSNULL (0) -#define JSUNDEFINED = ((JSObject*)(-1)) - -/** - * Basic abstraction to associate names with values in a chain of scopes. - * Can represent any kind of scope, including lexical scopes (closures), - * namespaces, and classes. Access control can be implemented - */ -class JSScope { -public: - /** - * Gets the enclosing scope of this scope (if any). - * @return enclosing scope or JSNULL if none. - */ - virtual JSScope* getParent() = 0; - - /** - * Defines a new identifier in the current scope. In a completely static - * model, this may not be possible, and so this operation will be ignored. - * @param start the evaluation scope - * @param id identifier to define - * @param value optional value to associate with id - */ - virtual void defineValue(JSScope* start, JSIdentifier* id, JSObject* value = JSUNDEFINED) = 0; - - /** - * Looks up a value corresponding to the given identifier starting - * with the current scope, and proceeding up the scope chain. If - * the identifier's is not defined in any of the scopes, the value - * JSUNDEFINED is returned. - * @param start the evaluation scope - * @parm id the identifer to lookup - * @return result of lookup or JSUNDEFINED - */ - virtual JSObject* getValue(JSScope* start, JSIdentifier* id) = 0; - - /** - * Associates a value with an identifier in a given scope. - * @param start the evaluation scope - * @param id identifier to assign to - * @param value new value to give to id - * @return old value associated with identifier - */ - virtual JSObject* setValue(JSScope* start, JSIdentifier* id, JSObject* value) = 0; -};