13 lines
266 B
TypeScript
13 lines
266 B
TypeScript
|
export class Node {
|
||
|
public name;
|
||
|
public parent;
|
||
|
public get full_name (): string {
|
||
|
return `${this.parent}_${this.name}`;
|
||
|
}
|
||
|
|
||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||
|
public toString (): string {
|
||
|
return this.full_name;
|
||
|
}
|
||
|
}
|