/arkcompiler/ets_frontend/arkguard/test/grammar/interface_validation/ |
D | interface_property.ts | 18 function printLabel(labelledObj: { label: string }) { 19 return labelledObj.label; 22 let myObj = {size: 10, label: 'Size 10 Object'}; 27 label: string; property 31 return labelledObj.label; 34 let myObj1 = {size: 10, label: 'Size 10 Object'};
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsDeclarationsTypedefPropertyAndExportAssignment/ |
D | module.js | 35 … id: 'parseHTML', label: 'Parse HTML & CSS' }, styleLayout: { id: 'styl… property 39 AssertType({ id: 'parseHTML', label: 'Parse HTML & CSS' }, "{ id: "parseHTML"; lab… property 45 label: 'Parse HTML & CSS' 46 AssertType(label, "string"); 52 AssertType({ id: 'styleLayout', label: 'Style & Layout' }, "{ id: "styleLayout"; l… property 58 label: 'Style & Layout' 59 AssertType(label, "string");
|
/arkcompiler/ets_frontend/merge_abc/src/ |
D | assemblyLabelProto.cpp | 19 void Label::Serialize(const panda::pandasm::Label &label, protoPanda::Label &protoLabel) in Serialize() argument 21 protoLabel.set_name(label.name); in Serialize() 22 const auto &fileLocation = label.file_location; in Serialize() 29 void Label::Deserialize(const protoPanda::Label &protoLabel, panda::pandasm::Label &label) in Deserialize() argument 31 label.name = protoLabel.name(); in Deserialize() 34 FileLocation::Deserialize(protoLocation, label.file_location); in Deserialize()
|
D | assemblyLabelProto.h | 26 static void Serialize(const panda::pandasm::Label &label, protoPanda::Label &protoLabel); 27 static void Deserialize(const protoPanda::Label &protoLabel, panda::pandasm::Label &label);
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | bytecode_emitter_tests.cpp | 105 Label label = emitter.CreateLabel(); variable 106 emitter.Bind(label); 111 emitter.Jmp(label); 125 Label label = emitter.CreateLabel(); variable 126 emitter.Jmp(label); 133 emitter.Bind(label); 149 Label label = emitter.CreateLabel(); variable 150 emitter.Bind(label); 155 emitter.Jmp(label); 167 Label label = emitter.CreateLabel(); variable [all …]
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | labelTarget.h | 42 explicit LabelTarget(const util::StringView &label) : LabelTarget(nullptr, label) {} in LabelTarget() argument 43 explicit LabelTarget(Label *target, const util::StringView &label) in LabelTarget() argument 44 : LabelPair(target, nullptr), breakLabel_(label), continueLabel_(label) in LabelTarget() 63 void SetBreakTarget(Label *label) in SetBreakTarget() argument 65 begin_ = label; in SetBreakTarget()
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | controlFlowBreakContinueWithLabel.ts | 27 label: while (true) { 39 continue label; 40 AssertType(label, "any"); 45 break label; 46 AssertType(label, "any");
|
D | intersectionThisTypes.ts | 82 function test(label: Label) { 83 const extended = label.extend({ id: 67 }).extend({ tag: "hello" }); 85 AssertType(label.extend({ id: 67 }).extend({ tag: "hello" }), "Label & { id: number; } & { tag: str… 86 AssertType(label.extend({ id: 67 }).extend, "<T>(T) => Label & { id: number; } & T"); 87 AssertType(label.extend({ id: 67 }), "Label & { id: number; }"); 88 AssertType(label.extend, "<T>(T) => Label & T");
|
D | typeGuardNesting.ts | 25 let label: string = (typeof strOrBool === 'string') ? strOrBool : "string"; 26 AssertType(label, "string"); 71 let label: string = (typeof strOrBool === 'string') ? strOrBool : "string"; variable 72 AssertType(label, "string");
|
/arkcompiler/runtime_core/disassembler/tests/sources/ |
D | instructions.pa | 49 label: 50 jmp label 65 jeqz label 66 jnez label 67 jltz label 68 jgtz label 69 jlez label 70 jgez label 72 jeq v2, label 73 jne v2, label [all …]
|
/arkcompiler/ets_frontend/arkguard/src/utils/ |
D | ScopeAnalyzer.ts | 175 addLabel(label: Label): void; 189 getLabelLocation(label: Label): string; 250 function addLabel(label: Label): void { 251 current.labels.push(label); 262 function getLabelLocation(label: Label): string { 263 if (!current.labels.includes(label)) { 268 return lb === label; 271 return current.loc ? label.name : current.loc + '#' + index + label.name; 285 let labelName: string = '$' + scope.labels.length + '_' + node.label.text; 286 let label: Label = { [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/statement/ |
D | loopStatement.ts | 50 pandaGen.label(stmt, loopStartLabel); 56 pandaGen.label(stmt, conditionLabel); 64 pandaGen.label(stmt, loopEndLabel); 88 pandaGen.label(stmt, loopStartLabel); 101 pandaGen.label(stmt, loopEndLabel); 145 pandaGen.label(stmt, loopStartLabel); 155 pandaGen.label(stmt, incLabel); 187 pandaGen.label(stmt, loopEndLabel); 212 pandaGen.label(stmt, loopStartLabel); 227 pandaGen.label(stmt, incLabel); [all …]
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-labelled-statement-expected.txt | 6 "label": { 60 "label": { 129 "label": { 211 "label": { 292 "label": { 360 "label": { 415 "label": { 549 "label": { 568 "label": { 603 "label": { [all …]
|
/arkcompiler/runtime_core/libpandafile/ |
D | bytecode_emitter.cpp | 123 void BytecodeEmitter::Bind(const Label &label) in Bind() argument 125 *label.pc_ = pc_; in Bind() 126 targets_.insert(label); in Bind() 163 auto label = it->second; in ReserveSpaceForOffsets() local 168 … const auto REAL_IMM_SIZE = GetBitLengthSigned(EstimateMaxDistance(insn_pc, label.GetPc(), bias)); in ReserveSpaceForOffsets() 180 new_branches.insert(std::make_pair(new_target, label)); in ReserveSpaceForOffsets() 227 Label label = branch.second; in UpdateBranches() local 228 auto offset = static_cast<int32_t>(label.GetPc()) - static_cast<int32_t>(insn_pc); in UpdateBranches() 241 Label label = *it; in UpdateLabelTargets() local 243 *label.pc_ += bias; in UpdateLabelTargets() [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/base/ |
D | iterator.ts | 126 pg.label(this.node, tryBeginLabel); 140 pg.label(this.node, tryEndLabel); 143 pg.label(this.node, catchBeginLabel); 145 pg.label(this.node, catchEndLabel); 152 pg.label(this.node, doThrow); 156 pg.label(this.node, skipThrow); 161 pg.label(this.node, noReturn);
|
/arkcompiler/ets_frontend/ts2panda/src/function/ |
D | generatorFunctionBuilder.ts | 113 pandaGen.label(expr, loopStartLabel); 122 pandaGen.label(expr, callreturnLabel); 135 pandaGen.label(expr, exitLabelReturn); 149 pandaGen.label(expr, callthrowLabel); 161 pandaGen.label(expr, exitLabelThrow); 175 pandaGen.label(expr, exitLabelTypeError); 179 pandaGen.label(expr, iteratorCompletionLabel); 199 pandaGen.label(expr, exitLabelValue); 214 pandaGen.label(expr, outputLabel); 246 pandaGen.label(node, notRetLabel); [all …]
|
D | asyncGeneratorFunctionBuilder.ts | 65 pg.label(node, this.beginLabel); 154 pg.label(node, loopStart); 164 pg.label(node, throwCompletion); 188 pg.label(node, returnCompletion); 207 pg.label(node, callMethod); 244 pg.label(node, iterCompletion); 259 pg.label(node, normalOrThrowCompletion); 289 pg.label(node, normalCompletion); 302 pg.label(node, notRet); 309 pg.label(node, notThrow); [all …]
|
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/ |
D | RenameIdentifierTransformer.ts | 269 for (const label of labels) { constant 270 let mangledLabel = getMangledLabel(label, upperMangledLabels); 271 mangledLabelNames.set(label, mangledLabel); 276 function getMangledLabel(label: Label, mangledLabels: string[]): string { 280 if (mangledLabel === label.name) { 292 function getUpperMangledLabelNames(label: Label): string[] { 294 let parent: Label = label.parent; 367 let label: Label | undefined; 372 label = key; 377 return label ? factory.createIdentifier(labelName) : node;
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | compilerUtils.ts | 89 pandaGen.label(arr, tryBeginLabel); 155 pandaGen.label(element, getDefaultLabel); 163 pandaGen.label(element, getUndefinedLabel); 166 pandaGen.label(element, storeLabel); 170 pandaGen.label(arr, tryEndLabel); 184 pandaGen.label(arr, catchBeginLabel); 189 pandaGen.label(arr, catchEndLabel); 192 pandaGen.label(arr, normalClose); 195 pandaGen.label(arr, endLabel); 219 pandaGen.label(restElement, nextLabel); [all …]
|
D | assemblyDumper.ts | 170 getLabelName(label: Label): string { 172 if (!this.labels.has(label.id)) { 174 this.labels.set(label.id, labelName); 176 labelName = this.labels.get(label.id)!; 181 writeLabel(label: Label): void { 182 let labelName = this.getLabelName(label);
|
/arkcompiler/runtime_core/scripts/ |
D | run-clang-format | 40 --label="$FILE_NAME (original)" \ 41 --label="$FILE_NAME (reformatted)" \
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
D | tupleAssignability12-expected.txt | 30 "label": { 70 "label": { 110 "label": { 210 "label": { 250 "label": { 290 "label": { 330 "label": {
|
/arkcompiler/ets_frontend/es2panda/parser/context/ |
D | parserContext.cpp | 21 const ParserContext *ParserContext::FindLabel(const util::StringView &label) const in FindLabel() 29 if (iter->label_ == label) { in FindLabel()
|
D | parserContext.h | 72 …explicit ParserContext(ParserContext *current, ParserStatus newStatus, util::StringView label = "") in DEFINE_BITOPS() 73 : program_(current->program_), prev_(current), label_(label) in DEFINE_BITOPS() 135 const ParserContext *FindLabel(const util::StringView &label) const; in DEFINE_BITOPS()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | assembler_module.h | 49 panda::ecmascript::Label *label = GetFunctionLabel(id); in GetFunction() local 50 if (label->IsBound()) { in GetFunction() 51 return label->GetPos(); in GetFunction()
|