mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 04:19:30 +08:00
21 lines
717 B
Text
21 lines
717 B
Text
import Attribute from '../Attribute';
|
|
import Component from '../../Component';
|
|
import { INode } from '../interfaces';
|
|
import { TemplateNode } from '../../../interfaces';
|
|
export default class Node {
|
|
readonly start: number;
|
|
readonly end: number;
|
|
readonly component: Component;
|
|
readonly parent: INode;
|
|
readonly type: string;
|
|
prev?: INode;
|
|
next?: INode;
|
|
can_use_innerhtml: boolean;
|
|
var: string;
|
|
attributes: Attribute[];
|
|
constructor(component: Component, parent: Node, _scope: any, info: TemplateNode);
|
|
cannot_use_innerhtml(): void;
|
|
find_nearest(selector: RegExp): any;
|
|
get_static_attribute_value(name: string): string | true;
|
|
has_ancestor(type: string): any;
|
|
}
|