Skip to content

Commit 54a84f3

Browse files
authored
Remove struct expressions (#38)
1 parent 7320865 commit 54a84f3

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

spec/index.html

-32
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ <h1>Syntax</h1>
2525
`struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await] StructTail[?Yield, ?Await]
2626
[+Default] `struct` [no LineTerminator here] StructTail[?Yield, ?Await]
2727

28-
StructExpression[Yield, Await] :
29-
`struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await]? StructTail[?Yield, ?Await]
30-
3128
StructTail[Yield, Await] :
3229
ClassHeritage[?Yield, ?Await]? `{` StructBody[?Yield, ?Await]? `}`
3330

@@ -301,19 +298,6 @@ <h1>Runtime Semantics: Evaluation</h1>
301298
1. Perform ? BindingStructDeclarationEvaluation of this |StructDeclaration|.
302299
1. Return ~empty~.
303300
</emu-alg>
304-
<emu-grammar>StructExpression : `struct` StructTail</emu-grammar>
305-
<emu-alg>
306-
1. Let _value_ be ? StructDefinitionEvaluation of |StructTail| with arguments *undefined* and *""*.
307-
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
308-
1. Return _value_.
309-
</emu-alg>
310-
<emu-grammar>StructExpression : `struct` BindingIdentifier StructTail</emu-grammar>
311-
<emu-alg>
312-
1. Let _structName_ be StringValue of |BindingIdentifier|.
313-
1. Let _value_ be ? StructDefinitionEvaluation of |StructTail| with arguments _structName_ and _structName_.
314-
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
315-
1. Return _value_.
316-
</emu-alg>
317301
</emu-clause>
318302
</ins>
319303
</emu-clause>
@@ -754,9 +738,6 @@ <h1>Syntax</h1>
754738
`shared` [no LineTerminator here] `struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await] SharedStructTail[?Yield, ?Await]
755739
[+Default] `shared` [no LineTerminator here] `struct` [no LineTerminator here] SharedStructTail[?Yield, ?Await]
756740

757-
StructExpression[Yield, Await] :
758-
`shared` [no LineTerminator here] `struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await]? SharedStructTail[?Yield, ?Await]
759-
760741
SharedStructTail[Yield, Await] :
761742
ClassHeritage[?Yield, ?Await]? `{` SharedStructBody[?Yield, ?Await]? `}`
762743

@@ -1049,19 +1030,6 @@ <h1>Runtime Semantics: Evaluation</h1>
10491030
1. Perform ? BindingStructDeclarationEvaluation of this |StructDeclaration|.
10501031
1. Return ~empty~.
10511032
</emu-alg>
1052-
<emu-grammar>StructExpression : `shared` `struct` SharedStructTail</emu-grammar>
1053-
<emu-alg>
1054-
1. Let _value_ be ? SharedStructDefinitionEvaluation of |SharedStructTail| with arguments *undefined* and *""*.
1055-
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
1056-
1. Return _value_.
1057-
</emu-alg>
1058-
<emu-grammar>StructExpression : `shared` `struct` BindingIdentifier SharedStructTail</emu-grammar>
1059-
<emu-alg>
1060-
1. Let _structName_ be StringValue of |BindingIdentifier|.
1061-
1. Let _value_ be ? SharedStructDefinitionEvaluation of |SharedStructTail| with arguments _structName_ and _structName_.
1062-
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
1063-
1. Return _value_.
1064-
</emu-alg>
10651033
</emu-clause>
10661034
</ins>
10671035
</emu-clause>

0 commit comments

Comments
 (0)