1# Copyright (c) 2021-2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14 15ignored_list: 16 17 # Which constructors should not be generated 18 constructors: 19 20 # For classes listed below constructors will not be generated 21 call_class: 22 - name: AstNode 23 - name: ClassElement 24 - name: Annotated 25 - name: AnnotationAllowed 26 - name: Typed 27 - name: Scope 28 - name: Type 29 - name: ObjectType 30 - name: VarBinder 31 - name: ETSBinder 32 - name: BoundContext 33 namespace: varbinder 34 - name: Checker 35 - name: ETSChecker 36 - name: ETSParser 37 - name: Program 38 - name: NumberLiteral 39 - name: VerifiedType 40 - name: ImportPathManager 41 42 43 # Which methods should not be generated 44 methods: 45 46 # For classes listed below methods will not be generated 47 call_class: 48 - name: Annotated 49 - name: Checker 50 - name: ETSChecker 51 - name: VarBinder 52 - name: ETSBinder 53 54 # Method will not be generated if return type is one of the following 55 return_type: 56 - name: Checker 57 - name: ETSChecker 58 - name: ArenaAllocator 59 - name: Allocator 60 - name: Tag 61 - name: ConstraintCheckRecord 62 - name: Number 63 namespace: lexer 64 - name: Property 65 namespace: AstDumper 66 - name: TSChecker 67 namespace: checker 68 - name: stringstream 69 - name: Holder 70 - name: tuple 71 - name: UnaryPredicate 72 namespace: checker 73 - name: VarBinder 74 - name: ModulesToExportedNamesWithAliases 75 namespace: varbinder 76 - name: T 77 - name: K 78 - name: ModuleEntry 79 namespace: varbinder 80 - name: ETSBinder 81 - name: Context 82 namespace: public_lib 83 - name: VariableType 84 namespace: varbinder 85 - name: Args 86 namespace: varbinder 87 - name: InsertResult 88 namespace: varbinder 89 - name: RelationHolder 90 namespace: checker 91 - name: auto 92 - name: recursive_mutex 93 - name: SmartCastArray 94 - name: SmartCastTypes 95 - name: SemanticAnalyzer 96 - name: optional 97 namespace: std 98 - name: WrapperDesc 99 - name: Language 100 - name: ScopedDebugInfoPlugin 101 - name: Args 102 namespace: parser 103 - name: ETSParser 104 - name: ScriptExtension 105 - name: function 106 namespace: std 107 - name: path 108 namespace: fs 109 - name: ImportData 110 - name: PathsMap 111 - name: Level 112 namespace: Logger 113 114 115 # Method and constructors will not be generated if c++ postfix contains any element listed below 116 postfix_contains: 117 - '= delete' 118 - override 119 120 # Methods and constructors with arguments listed below will not be generated 121 args: 122 - type: 123 name: Tag 124 - type: 125 name: Number 126 namespace: lexer 127 - type: 128 name: Property 129 namespace: AstDumper 130 - type: 131 name: TSChecker 132 namespace: checker 133 - type: 134 name: ArenaVector 135 template_args: 136 - type: 137 name: pair 138 - type: 139 name: initializer_list 140 - type: 141 name: stringstream 142 - type: 143 name: Holder 144 - type: 145 name: tuple 146 - type: 147 name: UnaryPredicate 148 namespace: checker 149 - type: 150 name: ScopedDebugInfoPlugin 151 - type: 152 name: ModulesToExportedNamesWithAliases 153 namespace: varbinder 154 - type: 155 name: ModuleEntry 156 namespace: varbinder 157 - type: 158 name: Args 159 - type: 160 name: VariableType 161 namespace: varbinder 162 - type: 163 name: Span 164 - type: 165 name: recursive_mutex 166 - type: 167 name: InsertResult 168 namespace: varbinder 169 - type: 170 name: auto 171 - type: 172 name: SmartCastArray 173 - type: 174 name: SmartCastTypes 175 - type: 176 name: ConstraintCheckRecord 177 - type: 178 name: WrapperDesc 179 - type: 180 name: optional 181 namespace: std 182 - type: 183 name: RelationHolder 184 namespace: checker 185 - type: 186 name: function 187 namespace: std 188 - type: 189 name: DiagnosticMessageParams 190 namespace: util 191 - type: 192 name: PandArgParser 193 namespace: gen 194 - type: 195 name: T 196 - type: 197 name: K 198 - name: '[N]' 199 - type: 200 name: SourceFile 201 namespace: ark::es2panda 202 - type: 203 name: ETSWarnings 204 namespace: parser 205 206 # Methods and constructors which contains templates with names listed below will not be generated 207 template_names: 208 - name: typename Invariant 209 210 211# Despite the ignored_list section, the following will be generated 212# Format: [{<class_name>: [<method_name_1, method_name_2, ...]>}, ...] 213allowed_list: 214 ETSBinder: 215 - ResolveReferenceForScope 216 - ResolveReferencesForScope 217 - ResolveReferencesForScopeWithContext 218 template_types: 219 - ETSFunctionType 220 - ETSImportDeclaration 221 - string 222 - ETSObjectType 223 - LocalVariable 224 - Statement 225 - FunctionScope 226 - Type 227 - Program 228 - ClassProperty 229 - Expression 230 - size_t 231 - Decorator 232 - ReturnStatement 233 - TSClassImplements 234 - SwitchCaseStatement 235 - Decl 236 - TSTypeParameter 237 - Variable 238 - bool 239 - VariableDeclarator 240 - AstNode 241 - TemplateElement 242 - Signature 243 - TSInterfaceDeclaration 244 - AnnotationDeclaration 245 - TSInterfaceHeritage 246 - AnnotationUsage 247 - CatchClause 248 - LabelPair 249 - ExportSpecifier 250 - ClassDefinition 251 - StringView 252 - TypeNode 253 - ArkTsConfig 254 - JsDocInfo 255