@markuplint/ml-ast
Advanced tools
Comparing version 2.0.1-dev.20220307.0 to 3.0.0-alpha.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); |
@@ -12,4 +12,4 @@ export interface MLToken { | ||
} | ||
export declare type MLASTNodeType = 'doctype' | 'starttag' | 'endtag' | 'comment' | 'text' | 'omittedtag' | 'psblock'; | ||
export declare type MLASTNode = MLASTDoctype | MLASTTag | MLASTComment | MLASTText | MLASTPreprocessorSpecificBlock; | ||
export declare type MLASTNodeType = 'doctype' | 'starttag' | 'endtag' | 'comment' | 'text' | 'omittedtag' | 'psblock' | 'html-attr' | 'ps-attr'; | ||
export declare type MLASTNode = MLASTDoctype | MLASTTag | MLASTComment | MLASTText | MLASTPreprocessorSpecificBlock | MLASTAttr; | ||
export interface MLASTAbstructNode extends MLToken { | ||
@@ -53,8 +53,2 @@ type: MLASTNodeType; | ||
} | ||
export interface MLASTOmittedElement extends MLASTAbstructNode { | ||
type: 'omittedtag'; | ||
namespace: string; | ||
childNodes?: MLASTNode[]; | ||
isCustomElement: boolean; | ||
} | ||
export interface MLASTPreprocessorSpecificBlock extends MLASTAbstructNode { | ||
@@ -69,4 +63,4 @@ type: 'psblock'; | ||
} | ||
export declare type MLASTTag = MLASTElement | MLASTElementCloseTag | MLASTOmittedElement; | ||
export declare type MLASTParentNode = MLASTElement | MLASTOmittedElement | MLASTPreprocessorSpecificBlock; | ||
export declare type MLASTTag = MLASTElement | MLASTElementCloseTag; | ||
export declare type MLASTParentNode = MLASTElement | MLASTPreprocessorSpecificBlock; | ||
export interface MLASTComment extends MLASTAbstructNode { | ||
@@ -79,3 +73,3 @@ type: 'comment'; | ||
export declare type MLASTAttr = MLASTHTMLAttr | MLASTPreprocessorSpecificAttr; | ||
export interface MLASTHTMLAttr extends MLToken { | ||
export interface MLASTHTMLAttr extends MLASTAbstructNode { | ||
type: 'html-attr'; | ||
@@ -95,4 +89,9 @@ spacesBeforeName: MLToken; | ||
isDuplicatable: boolean; | ||
parentNode: null; | ||
nextNode: null; | ||
prevNode: null; | ||
isFragment: false; | ||
isGhost: false; | ||
} | ||
export interface MLASTPreprocessorSpecificAttr extends MLToken { | ||
export interface MLASTPreprocessorSpecificAttr extends MLASTAbstructNode { | ||
type: 'ps-attr'; | ||
@@ -111,3 +110,2 @@ potentialName: string; | ||
parse(sourceCode: string, offsetOffset?: number, offsetLine?: number, offsetColumn?: number, ignoreFrontMatter?: boolean): MLASTDocument; | ||
tagNameCaseSensitive?: boolean; | ||
/** | ||
@@ -120,2 +118,3 @@ * @default "omittable" | ||
export declare type Walker = (node: MLASTNode, depth: number) => void; | ||
export declare type NamespaceURI = 'http://www.w3.org/1999/xhtml' | 'http://www.w3.org/2000/svg' | 'http://www.w3.org/1998/Math/MathML'; | ||
export declare type NamespaceURI = 'http://www.w3.org/1999/xhtml' | 'http://www.w3.org/2000/svg' | 'http://www.w3.org/1998/Math/MathML' | 'http://www.w3.org/1999/xlink'; | ||
export declare type Namespace = 'html' | 'svg' | 'mml' | 'xlink'; |
{ | ||
"name": "@markuplint/ml-ast", | ||
"version": "2.0.1-dev.20220307.0", | ||
"version": "3.0.0-alpha.0", | ||
"description": "The markuplint AST types.", | ||
@@ -18,3 +18,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "c0a9d36c32ae278bd2fdb9ec9434fd4af46918c3" | ||
"gitHead": "d32c522e016888e20bcbb5f09352c006b964f193" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57057
123