Home
last modified time | relevance | path

Searched refs:labelName (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/statement/
DlabelTarget.ts125 let labelName = jshelpers.getTextOfIdentifierOrLiteral(labeledStmt.label);
128 if (LabelTarget.name2LabelTarget.has(labelName)) {
132 LabelTarget.name2LabelTarget.set(labelName, labelTarget);
137 static deleteName2LabelTarget(labelName: string): void {
138 LabelTarget.name2LabelTarget.delete(labelName);
148 let labelName = jshelpers.getTextOfIdentifierOrLiteral(stmt.label);
149 labelTarget = LabelTarget.name2LabelTarget.get(labelName)!;
/arkcompiler/ets_frontend/ts2panda/src/
DassemblyDumper.ts171 let labelName: string;
173 labelName = this.labelPrefix + this.labelId++;
174 this.labels.set(label.id, labelName);
176 labelName = this.labels.get(label.id)!;
178 return labelName;
182 let labelName = this.getLabelName(label);
183 this.output += labelName + ":\n";
Dts2panda.ts128 let labelName = Ts2Panda.labelPrefix + operand.id;
129 insIds.push(labelName);
147 let labelName = Ts2Panda.labelPrefix + operand.id;
148 insIds.push(labelName);
Dcompiler.ts592 let labelName: string = jshelpers.getTextOfIdentifierOrLiteral(stmt.label);
611 LabelTarget.deleteName2LabelTarget(labelName);
/arkcompiler/ets_frontend/arkguard/src/utils/
DScopeAnalyzer.ts285 let labelName: string = '$' + scope.labels.length + '_' + node.label.text;
288 'locInfo': labelName,
528 let labelName: string = node?.label?.text ?? '';
529 let label: Label = findTargetLabel(labelName);
541 function findTargetLabel(labelName: string): Label | null {
542 if (!labelName) {
548 while (label && label?.name !== labelName) {
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/
DRenameIdentifierTransformer.ts368 let labelName: string = '';
373 labelName = value;
377 return label ? factory.createIdentifier(labelName) : node;
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dpandagen.cpp749 util::StringView labelName = label ? label->Name() : LabelTarget::BREAK_LABEL; in ControlFlowChangeBreak() local
753 iter->AbortContext(ControlFlowChange::BREAK, labelName); in ControlFlowChangeBreak()
761 if (labelTargetName == labelName) { in ControlFlowChangeBreak()
774 util::StringView labelName = label ? label->Name() : LabelTarget::CONTINUE_LABEL; in ControlFlowChangeContinue() local
778 iter->AbortContext(ControlFlowChange::CONTINUE, labelName); in ControlFlowChangeContinue()
786 if (labelTargetName == labelName) { in ControlFlowChangeContinue()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp582 auto labelName = labels[i].asString(); in ParseFunctionLabels() local
583 auto pandaLabel = MakeLabel(labelName); in ParseFunctionLabels()
585 Logd("label_name:\t%s", labelName.c_str()); in ParseFunctionLabels()
586 pandaFunc.label_table.emplace(labelName, pandaLabel); in ParseFunctionLabels()