source: trip-planner-front/node_modules/@angular/compiler/src/ml_parser/parser.d.ts

Last change on this file 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 */
8import { ParseError, ParseSourceSpan } from '../parse_util';
9import * as html from './ast';
10import { TokenizeOptions } from './lexer';
11import { TagDefinition } from './tags';
12export 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}
17export declare class ParseTreeResult {
18 rootNodes: html.Node[];
19 errors: ParseError[];
20 constructor(rootNodes: html.Node[], errors: ParseError[]);
21}
22export 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.