grammar-field-classelementname-initializer.js (1570B)
1 // This file was procedurally generated from the following sources: 2 // - src/class-elements/grammar-field-classelementname-initializer.case 3 // - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template 4 /*--- 5 description: FieldDefinition, ClassElementName, PropertyName = Initializer Syntax (class expression) 6 esid: prod-ClassElement 7 features: [class-fields-public, class] 8 flags: [generated] 9 info: | 10 ClassElement : 11 ... 12 FieldDefinition ; 13 ; 14 15 FieldDefinition : 16 ClassElementName Initializer _opt 17 18 ClassElementName : 19 PropertyName 20 PrivateName 21 22 PropertyName : 23 LiteralPropertyName 24 ComputedPropertyName 25 26 LiteralPropertyName : 27 IdentifierName 28 29 Initializer : 30 = AssignmentExpression 31 32 IdentifierName :: 33 IdentifierStart 34 IdentifierName IdentifierPart 35 36 IdentifierStart :: 37 UnicodeIDStart 38 $ 39 _ 40 \ UnicodeEscapeSequence 41 42 IdentifierPart :: 43 UnicodeIDContinue 44 $ 45 \ UnicodeEscapeSequence 46 <ZWNJ> <ZWJ> 47 48 UnicodeIDStart :: 49 any Unicode code point with the Unicode property "ID_Start" 50 51 UnicodeIDContinue :: 52 any Unicode code point with the Unicode property "ID_Continue" 53 54 55 NOTE 3 56 The sets of code points with Unicode properties "ID_Start" and 57 "ID_Continue" include, respectively, the code points with Unicode 58 properties "Other_ID_Start" and "Other_ID_Continue". 59 60 ---*/ 61 62 63 var C = class { 64 $ = 1; 65 _ = 2; 66 \u{6F} = 3; 67 \u2118 = 4; 68 ZW_\u200C_NJ = 5; 69 ZW_\u200D_J = 6; 70 }; 71 72 reportCompare(0, 0);