diff --git a/doc/TypeScript Language Specification.docx b/doc/TypeScript Language Specification.docx index 3feaa403995..caab60b12ff 100644 Binary files a/doc/TypeScript Language Specification.docx and b/doc/TypeScript Language Specification.docx differ diff --git a/doc/spec.md b/doc/spec.md index 6275ed10c2b..764ff2398b6 100644 --- a/doc/spec.md +++ b/doc/spec.md @@ -4284,8 +4284,8 @@ Note that the construct signatures in the constructor function types have the sa A constructor declaration declares the constructor function of a class.   *ConstructorDeclaration:* -   *AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `{` *FunctionBody* `} -   `*AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `;` +   *AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `{` *FunctionBody* `}` +   *AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `;` Constructor declarations that specify a body are called ***constructor implementations*** and constructor declarations without a body are called ***constructor overloads***. It is possible to specify multiple constructor overloads in a class, but a class can have at most one constructor implementation. All constructor declarations in a class must specify the same set of modifiers. Only public constructors are supported and private or protected constructors result in an error. @@ -4467,8 +4467,8 @@ class Employee { A member function declaration declares an instance member function or a static member function.   *MemberFunctionDeclaration:* -   *AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `{` *FunctionBody* `} -   `*AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `;` +   *AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `{` *FunctionBody* `}` +   *AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `;` A member function declaration is processed in the same manner as an ordinary function declaration (section [6](#6)), except that in a member function `this` has a known type. @@ -5768,9 +5768,9 @@ Ambient declarations are written using the `declare` keyword and can declare var An ambient variable declaration introduces a variable in the containing declaration space.   *AmbientVariableDeclaration:* -   `var` *AmbientBindingList* `; -   let` *AmbientBindingList* `; -   const` *AmbientBindingList* `;` +   `var` *AmbientBindingList* `;` +   `let` *AmbientBindingList* `;` +   `const` *AmbientBindingList* `;`   *AmbientBindingList:*    *AmbientBinding* @@ -6184,8 +6184,8 @@ This appendix contains a summary of the grammar found in the main document. As d    *IndexMemberDeclaration*   *ConstructorDeclaration:* -   *AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `{` *FunctionBody* `} -   `*AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `;` +   *AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `{` *FunctionBody* `}` +   *AccessibilityModifieropt* `constructor` `(` *ParameterListopt* `)` `;`   *PropertyMemberDeclaration:*    *MemberVariableDeclaration* @@ -6196,8 +6196,8 @@ This appendix contains a summary of the grammar found in the main document. As d    *AccessibilityModifieropt* `static`*opt* *PropertyName* *TypeAnnotationopt* *Initializeropt* `;`   *MemberFunctionDeclaration:* -   *AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `{` *FunctionBody* `} -   `*AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `;` +   *AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `{` *FunctionBody* `}` +   *AccessibilityModifieropt* `static`*opt* *PropertyName* *CallSignature* `;`   *MemberAccessorDeclaration:*    *AccessibilityModifieropt* `static`*opt* *GetAccessor* @@ -6415,9 +6415,9 @@ This appendix contains a summary of the grammar found in the main document. As d    `declare` *AmbientNamespaceDeclaration*   *AmbientVariableDeclaration:* -   `var` *AmbientBindingList* `; -   let` *AmbientBindingList* `; -   const` *AmbientBindingList* `;` +   `var` *AmbientBindingList* `;` +   `let` *AmbientBindingList* `;` +   `const` *AmbientBindingList* `;`   *AmbientBindingList:*    *AmbientBinding*