2016-06-23 16:47:54 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-06-23 16:47:54 +00:00
|
|
|
*
|
|
|
|
|
* 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 20:56:58 +00:00
|
|
|
import {getHtmlTagDefinition} from './html_tags';
|
2019-02-08 22:10:19 +00:00
|
|
|
import {TokenizeOptions} from './lexer';
|
2020-04-08 17:14:18 +00:00
|
|
|
import {Parser, ParseTreeResult} from './parser';
|
2015-08-25 22:36:02 +00:00
|
|
|
|
2016-07-21 20:56:58 +00:00
|
|
|
export class HtmlParser extends Parser {
|
2020-04-08 17:14:18 +00:00
|
|
|
constructor() {
|
|
|
|
|
super(getHtmlTagDefinition);
|
|
|
|
|
}
|
2016-04-13 23:01:25 +00:00
|
|
|
|
2021-06-07 15:10:51 +00:00
|
|
|
override parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult {
|
2019-02-08 22:10:19 +00:00
|
|
|
return super.parse(source, url, options);
|
2015-10-07 16:34:21 +00:00
|
|
|
}
|
2016-04-26 04:47:33 +00:00
|
|
|
}
|