grammar-field-identifier-alt.js (1671B)
1 // This file was procedurally generated from the following sources: 2 // - src/class-elements/grammar-field-identifier-alt.case 3 // - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template 4 /*--- 5 description: Valid FieldDefinition, ClassElementName, PropertyName Syntax (class declaration) 6 esid: prod-ClassElement 7 features: [class-fields-public, class] 8 flags: [generated] 9 info: | 10 ClassElement : 11 MethodDefinition 12 static MethodDefinition 13 FieldDefinition ; 14 ; 15 16 FieldDefinition : 17 ClassElementName Initializer _opt 18 19 ClassElementName : 20 PropertyName 21 PrivateName 22 23 PropertyName : 24 LiteralPropertyName 25 ComputedPropertyName 26 27 LiteralPropertyName : 28 IdentifierName 29 StringLiteral 30 NumericLiteral 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 class C { 64 $; 65 _; 66 \u{6F}; 67 ℘; // DO NOT CHANGE THE NAME OF THIS FIELD 68 ZW__NJ; // DO NOT CHANGE THE NAME OF THIS FIELD 69 ZW__J; // DO NOT CHANGE THE NAME OF THIS FIELD 70 } 71 72 reportCompare(0, 0);