Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { ParseError, ParseSourceSpan } from '../parse_util';
|
---|
9 | import * as html from './ast';
|
---|
10 | import { TokenizeOptions } from './lexer';
|
---|
11 | import { TagDefinition } from './tags';
|
---|
12 | export declare class TreeError extends ParseError {
|
---|
13 | elementName: string | null;
|
---|
14 | static create(elementName: string | null, span: ParseSourceSpan, msg: string): TreeError;
|
---|
15 | constructor(elementName: string | null, span: ParseSourceSpan, msg: string);
|
---|
16 | }
|
---|
17 | export declare class ParseTreeResult {
|
---|
18 | rootNodes: html.Node[];
|
---|
19 | errors: ParseError[];
|
---|
20 | constructor(rootNodes: html.Node[], errors: ParseError[]);
|
---|
21 | }
|
---|
22 | export declare class Parser {
|
---|
23 | getTagDefinition: (tagName: string) => TagDefinition;
|
---|
24 | constructor(getTagDefinition: (tagName: string) => TagDefinition);
|
---|
25 | parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult;
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.