FunctionDeclaration.JScriptFunctionDeclaration Method

Definition

Creates a new closure function, using the specified information.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static Microsoft::JScript::Closure ^ JScriptFunctionDeclaration(RuntimeTypeHandle handle, System::String ^ name, System::String ^ method_name, cli::array <System::String ^> ^ formal_parameters, cli::array <Microsoft::JScript::JSLocalField ^> ^ fields, bool must_save_stack_locals, bool hasArgumentsObject, System::String ^ text, System::Object ^ declaringObject, Microsoft::JScript::Vsa::VsaEngine ^ engine);
public static Microsoft.JScript.Closure JScriptFunctionDeclaration (RuntimeTypeHandle handle, string name, string method_name, string[] formal_parameters, Microsoft.JScript.JSLocalField[] fields, bool must_save_stack_locals, bool hasArgumentsObject, string text, object declaringObject, Microsoft.JScript.Vsa.VsaEngine engine);
static member JScriptFunctionDeclaration : RuntimeTypeHandle * string * string * string[] * Microsoft.JScript.JSLocalField[] * bool * bool * string * obj * Microsoft.JScript.Vsa.VsaEngine -> Microsoft.JScript.Closure
Public Shared Function JScriptFunctionDeclaration (handle As RuntimeTypeHandle, name As String, method_name As String, formal_parameters As String(), fields As JSLocalField(), must_save_stack_locals As Boolean, hasArgumentsObject As Boolean, text As String, declaringObject As Object, engine As VsaEngine) As Closure

Parameters

handle
RuntimeTypeHandle

A handle to the type of the function.

name
String

The name of the function.

method_name
String

The name of the function.

formal_parameters
String[]

The parameters of the function.

fields
JSLocalField[]

The fields of the function.

must_save_stack_locals
Boolean

true to save local stack variables. This is important for a nested function that accesses one of its local variables or for an eval statement.

hasArgumentsObject
Boolean

true if the function has a parameter array.

text
String

The text of the function declaration.

declaringObject
Object

Gets the type that declares this method.

engine
VsaEngine

A reference to the scripting engine.

Returns

A new closure function that represents the function declaration.

Applies to

See also