Home
last modified time | relevance | path

Searched refs:TreeAdapterTypeMap (Results 1 – 19 of 19) sorted by relevance

/third_party/parse5/packages/parse5/lib/serializer/
Dindex.ts3 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js';
28 function isVoidElement<T extends TreeAdapterTypeMap>(node: T['node'], options: InternalOptions<T>):…
36 export interface SerializerOptions<T extends TreeAdapterTypeMap> {
52 type InternalOptions<T extends TreeAdapterTypeMap> = Required<SerializerOptions<T>>;
78 export function serialize<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
110 export function serializeOuter<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
118 function serializeChildNodes<T extends TreeAdapterTypeMap>(
141 function serializeNode<T extends TreeAdapterTypeMap>(node: T['node'], options: InternalOptions<T>):…
158 function serializeElement<T extends TreeAdapterTypeMap>(node: T['element'], options: InternalOption…
166 function serializeAttributes<T extends TreeAdapterTypeMap>(
[all …]
/third_party/parse5/packages/parse5/lib/parser/
Dindex.ts19 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js';
78 export interface ParserOptions<T extends TreeAdapterTypeMap> {
122 export class Parser<T extends TreeAdapterTypeMap> implements TokenHandler, StackHandler<T> {
160 …public static parse<T extends TreeAdapterTypeMap>(html: string, options?: ParserOptions<T>): T['do…
168 public static getFragmentParser<T extends TreeAdapterTypeMap>(
1309 function aaObtainFormattingElementEntry<T extends TreeAdapterTypeMap>(
1330 function aaObtainFurthestBlock<T extends TreeAdapterTypeMap>(
1358 function aaInnerLoop<T extends TreeAdapterTypeMap>(
1397 function aaRecreateElementFromEntry<T extends TreeAdapterTypeMap>(
1411 function aaInsertLastNodeInCommonAncestor<T extends TreeAdapterTypeMap>(
[all …]
Dformatting-element-list.ts2 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js';
16 export interface ElementEntry<T extends TreeAdapterTypeMap> {
22 export type Entry<T extends TreeAdapterTypeMap> = MarkerEntry | ElementEntry<T>;
27 export class FormattingElementList<T extends TreeAdapterTypeMap> {
Dopen-element-stack.ts2 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js';
44 export interface StackHandler<T extends TreeAdapterTypeMap> {
50 export class OpenElementStack<T extends TreeAdapterTypeMap> {
Dparser-location-info.test.ts3 import { type ParserOptions, type TreeAdapterTypeMap, parse, parseFragment } from 'parse5'; alias
11 …oParserTests('location-info-parser', (input: string, opts: ParserOptions<TreeAdapterTypeMap>) => ({
Dopen-element-stack.test.ts4 import type { TreeAdapterTypeMap } from '../tree-adapters/interface';
17 function createElement(tagName: string, namespaceURI = NS.HTML): TreeAdapterTypeMap['element'] {
/third_party/parse5/test/utils/
Dgenerate-parsing-tests.ts1 import type { ParserOptions, TreeAdapter, TreeAdapterTypeMap, ParserError } from 'parse5';
9 export interface TreeConstructionTestData<T extends TreeAdapterTypeMap> extends DatFile<T> {
15 export function loadTreeConstructionTestData<T extends TreeAdapterTypeMap>(
64 interface ParseMethodOptions<T extends TreeAdapterTypeMap> extends ParserOptions<T> {
68 interface ParseResult<T extends TreeAdapterTypeMap> {
73 type ParseMethod<T extends TreeAdapterTypeMap> = (
78 function createParsingTest<T extends TreeAdapterTypeMap>(
142 parse: ParseMethod<TreeAdapterTypeMap>
152 createParsingTest<TreeAdapterTypeMap>(test, treeAdapter, parse, {
Dgenerate-serializer-tests.ts3 import { type TreeAdapterTypeMap, type SerializerOptions, parse } from 'parse5'; alias
10 document: TreeAdapterTypeMap['document'],
11 opts: SerializerOptions<TreeAdapterTypeMap>
17 options?: SerializerOptions<TreeAdapterTypeMap>;
Dparse-dat-file.ts1 import { html, type TreeAdapterTypeMap, type TreeAdapter } from 'parse5'; alias
3 function createFragmentContext<T extends TreeAdapterTypeMap>(
27 export interface DatFile<T extends TreeAdapterTypeMap> {
37 export function parseDatFile<T extends TreeAdapterTypeMap>(testSet: string, treeAdapter: TreeAdapte…
Dserialize-to-dat-file-format.ts1 import { html, type TreeAdapter, type TreeAdapterTypeMap, type Token } from 'parse5'; alias
7 function getElementSerializedNamespaceURI<T extends TreeAdapterTypeMap>(
24 function serializeNodeList<T extends TreeAdapterTypeMap>(
82 export function serializeToDatFileFormat<T extends TreeAdapterTypeMap>(
Dgenerate-location-info-parser-tests.ts4 import { type TreeAdapterTypeMap, type TreeAdapter, type ParserOptions, type Token, serializeOuter … alias
14 function walkTree<T extends TreeAdapterTypeMap>(
118 …parse: (html: string, opts: ParserOptions<TreeAdapterTypeMap>) => { node: TreeAdapterTypeMap['node…
/third_party/parse5/packages/parse5/lib/
Dindex.ts4 import type { TreeAdapterTypeMap } from './tree-adapters/interface.js';
7 export type { TreeAdapter, TreeAdapterTypeMap } from './tree-adapters/interface.js';
40 export function parse<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
70 export function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
75 export function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
79 export function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
/third_party/parse5/packages/parse5-parser-stream/lib/
Dindex.ts2 import { Parser, type ParserOptions, type TreeAdapterTypeMap, type DefaultTreeAdapterMap } from 'pa… alias
30 export class ParserStream<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap> extends Writable {
31 static getFragmentStream<T extends TreeAdapterTypeMap>(
104 export interface ParserStream<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap> {
/third_party/parse5/packages/parse5-parser-stream/test/utils/
Dparse-chunked.ts1 import type { ParserOptions, TreeAdapterTypeMap } from 'parse5';
5 export function parseChunked<T extends TreeAdapterTypeMap>(
10 ): { node: TreeAdapterTypeMap['document']; chunks: string[] } {
/third_party/parse5/packages/parse5/lib/tree-adapters/
Dinterface.ts4 export interface TreeAdapterTypeMap< interface
35 export interface TreeAdapter<T extends TreeAdapterTypeMap = TreeAdapterTypeMap> {
Ddefault.ts3 import type { TreeAdapter, TreeAdapterTypeMap } from './interface.js';
92 export type DefaultTreeAdapterMap = TreeAdapterTypeMap<
/third_party/parse5/packages/parse5-plain-text-conversion-stream/lib/
Dindex.ts1 import { type ParserOptions, type TreeAdapterTypeMap, html } from 'parse5'; alias
27 export class PlainTextConversionStream<T extends TreeAdapterTypeMap> extends ParserStream<T> {
/third_party/parse5/scripts/generate-parser-feedback-test/
Dindex.ts3 import { Parser, type DefaultTreeAdapterMap, type TreeAdapterTypeMap, type Token, defaultTreeAdapte… alias
19 class ExtendedParser<T extends TreeAdapterTypeMap> extends Parser<T> {
/third_party/parse5/packages/parse5-htmlparser2-tree-adapter/lib/
Dindex.ts1 import { type TreeAdapterTypeMap, type TreeAdapter, type Token, html } from 'parse5'; alias
17 export type Htmlparser2TreeAdapterMap = TreeAdapterTypeMap<