2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-07-21 13:56:58 -07:00
|
|
|
import {getHtmlTagDefinition} from './html_tags';
|
2019-02-08 22:10:19 +00:00
|
|
|
import {TokenizeOptions} from './lexer';
|
2020-04-08 10:14:18 -07:00
|
|
|
import {Parser, ParseTreeResult} from './parser';
|
2015-08-25 15:36:02 -07:00
|
|
|
|
2016-07-21 13:56:58 -07:00
|
|
|
export {ParseTreeResult, TreeError} from './parser';
|
2015-08-25 15:36:02 -07:00
|
|
|
|
2016-07-21 13:56:58 -07:00
|
|
|
export class HtmlParser extends Parser {
|
2020-04-08 10:14:18 -07:00
|
|
|
constructor() {
|
|
|
|
super(getHtmlTagDefinition);
|
|
|
|
}
|
2016-04-13 16:01:25 -07:00
|
|
|
|
2019-02-08 22:10:19 +00:00
|
|
|
parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult {
|
|
|
|
return super.parse(source, url, options);
|
2015-10-07 09:34:21 -07:00
|
|
|
}
|
2016-04-25 21:47:33 -07:00
|
|
|
}
|