Lines Matching refs:label
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 = {
287 'name': node.label.text,
289 'refs': [node.label],
295 scope.labels.push(label);
296 parent?.children.push(label);
298 return label;
528 let labelName: string = node?.label?.text ?? '';
529 let label: Label = findTargetLabel(labelName);
530 if (!label) {
534 if (node.label) {
535 label?.refs.push(node.label);
546 let label: Label | undefined = upperLabel;
548 while (label && label?.name !== labelName) {
549 label = label?.parent;
552 return label;