mirror of https://github.com/vuejs/core.git
chore: restructure parser files
This commit is contained in:
parent
c11002f16a
commit
6ec85ae872
|
@ -13,7 +13,7 @@ import {
|
||||||
DirectiveNode
|
DirectiveNode
|
||||||
} from '../src/ast'
|
} from '../src/ast'
|
||||||
|
|
||||||
import { baseParse } from '../src/parser/index'
|
import { baseParse } from '../src/parser'
|
||||||
|
|
||||||
/* eslint jest/no-disabled-tests: "off" */
|
/* eslint jest/no-disabled-tests: "off" */
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { CompilerOptions } from './options'
|
import { CompilerOptions } from './options'
|
||||||
import { baseParse } from './parser/index'
|
import { baseParse } from './parser'
|
||||||
import { transform, NodeTransform, DirectiveTransform } from './transform'
|
import { transform, NodeTransform, DirectiveTransform } from './transform'
|
||||||
import { generate, CodegenResult } from './codegen'
|
import { generate, CodegenResult } from './codegen'
|
||||||
import { RootNode } from './ast'
|
import { RootNode } from './ast'
|
||||||
|
|
|
@ -28,8 +28,8 @@ export interface ParserOptions
|
||||||
* configured by higher-level compilers.
|
* configured by higher-level compilers.
|
||||||
*
|
*
|
||||||
* HTML mode adds additional logic for handling special parsing behavior in
|
* HTML mode adds additional logic for handling special parsing behavior in
|
||||||
* `<script>`, `<style>`,`<title>` and `<html>`, plus SVG and MathML
|
* `<script>`, `<style>`,`<title>` and `<textarea>`.
|
||||||
* namespaces. The logic is handled inside compiler-core for efficiency.
|
* The logic is handled inside compiler-core for efficiency.
|
||||||
*
|
*
|
||||||
* SFC mode treats content of all root-level tags except `<template>` as plain
|
* SFC mode treats content of all root-level tags except `<template>` as plain
|
||||||
* text.
|
* text.
|
||||||
|
|
|
@ -13,8 +13,8 @@ import {
|
||||||
TemplateChildNode,
|
TemplateChildNode,
|
||||||
createRoot,
|
createRoot,
|
||||||
createSimpleExpression
|
createSimpleExpression
|
||||||
} from '../ast'
|
} from './ast'
|
||||||
import { ParserOptions } from '../options'
|
import { ParserOptions } from './options'
|
||||||
import Tokenizer, {
|
import Tokenizer, {
|
||||||
CharCodes,
|
CharCodes,
|
||||||
ParseMode,
|
ParseMode,
|
||||||
|
@ -23,22 +23,22 @@ import Tokenizer, {
|
||||||
State,
|
State,
|
||||||
isWhitespace,
|
isWhitespace,
|
||||||
toCharCodes
|
toCharCodes
|
||||||
} from './Tokenizer'
|
} from './tokenizer'
|
||||||
import {
|
import {
|
||||||
CompilerCompatOptions,
|
CompilerCompatOptions,
|
||||||
CompilerDeprecationTypes,
|
CompilerDeprecationTypes,
|
||||||
checkCompatEnabled,
|
checkCompatEnabled,
|
||||||
isCompatEnabled,
|
isCompatEnabled,
|
||||||
warnDeprecation
|
warnDeprecation
|
||||||
} from '../compat/compatConfig'
|
} from './compat/compatConfig'
|
||||||
import { NO, extend } from '@vue/shared'
|
import { NO, extend } from '@vue/shared'
|
||||||
import {
|
import {
|
||||||
ErrorCodes,
|
ErrorCodes,
|
||||||
createCompilerError,
|
createCompilerError,
|
||||||
defaultOnError,
|
defaultOnError,
|
||||||
defaultOnWarn
|
defaultOnWarn
|
||||||
} from '../errors'
|
} from './errors'
|
||||||
import { forAliasRE, isCoreComponent, isStaticArgOf } from '../utils'
|
import { forAliasRE, isCoreComponent, isStaticArgOf } from './utils'
|
||||||
import { decodeHTML } from 'entities/lib/decode.js'
|
import { decodeHTML } from 'entities/lib/decode.js'
|
||||||
|
|
||||||
type OptionalOptions =
|
type OptionalOptions =
|
|
@ -22,8 +22,8 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
IN THE SOFTWARE.
|
IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ErrorCodes } from '../errors'
|
import { ErrorCodes } from './errors'
|
||||||
import { ElementNode, Position } from '../ast'
|
import { ElementNode, Position } from './ast'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Note: entities is a non-browser-build-only dependency.
|
* Note: entities is a non-browser-build-only dependency.
|
Loading…
Reference in New Issue