23.06.2015 Views

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MemberVariableAssignments is a sequence of assignments, one for each instance member variable<br />

declaration with an initializer, in the order they are declared, of the form<br />

this. = ;<br />

where MemberName is the name of the member variable and InitializerExpression is the code generated<br />

for the initializer expression.<br />

ConstructorStatements is the code generated for the statements specified in the constructor body.<br />

MemberFunctionStatements is a sequence of statements, one for each member function declaration or<br />

member accessor declaration, in the order they are declared.<br />

An instance member function declaration generates a statement of the form<br />

.prototype. = function () {<br />

<br />

<br />

}<br />

and static member function declaration generates a statement of the form<br />

. = function () {<br />

<br />

<br />

}<br />

where MemberName is the name of the member function, and FunctionParameters,<br />

DefaultValueAssignments, and FunctionStatements correspond to those generated for a regular function<br />

declaration, as described in section 6.6.<br />

A get or set instance member accessor declaration, or a pair of get and set instance member accessor<br />

declarations with the same name, generates a statement of the form<br />

Object.defineProperty(.prototype, "", {<br />

get: function () {<br />

<br />

},<br />

set: function () {<br />

<br />

},<br />

enumerable: true,<br />

configurable: true<br />

};<br />

125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!