mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-26 03:19:10 -06:00
More formatting glitches
This commit is contained in:
parent
6092ddd5bb
commit
0713d3465e
Binary file not shown.
28
doc/spec.md
28
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:*
|
||||
   *AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `{` *FunctionBody* `}
|
||||
   `*AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `;`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `{` *FunctionBody* `}`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `;`
|
||||
|
||||
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:*
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `{` *FunctionBody* `}
|
||||
   `*AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `;`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `{` *FunctionBody* `}`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *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:*
|
||||
   *AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `{` *FunctionBody* `}
|
||||
   `*AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `;`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `{` *FunctionBody* `}`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `constructor` `(` *ParameterList<sub>opt</sub>* `)` `;`
|
||||
|
||||
  *PropertyMemberDeclaration:*
|
||||
   *MemberVariableDeclaration*
|
||||
@ -6196,8 +6196,8 @@ This appendix contains a summary of the grammar found in the main document. As d
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *TypeAnnotation<sub>opt</sub>* *Initializer<sub>opt</sub>* `;`
|
||||
|
||||
  *MemberFunctionDeclaration:*
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `{` *FunctionBody* `}
|
||||
   `*AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `;`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `{` *FunctionBody* `}`
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *PropertyName* *CallSignature* `;`
|
||||
|
||||
  *MemberAccessorDeclaration:*
|
||||
   *AccessibilityModifier<sub>opt</sub>* `static`*<sub>opt</sub>* *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*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user