Home / File/ index.ts — vue Source File

index.ts — vue Source File

Architecture documentation for index.ts, a typescript file in the vue codebase. 23 imports, 3 dependents.

File typescript CompilerSFC StyleProcessor 23 imports 3 dependents 26 functions

Entity Profile

Dependency Diagram

graph LR
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987["index.ts"]
  3c4fa7b0_c9a8_3b62_4edb_edb8676e969a["html-parser.ts"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 3c4fa7b0_c9a8_3b62_4edb_edb8676e969a
  eb4d93e9_e98e_e100_79fc_397c66cc84c1["parseHTML"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> eb4d93e9_e98e_e100_79fc_397c66cc84c1
  b4f4f8a4_659f_4d84_97f1_ed004d07b69d["text-parser.ts"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> b4f4f8a4_659f_4d84_97f1_ed004d07b69d
  dbffbbee_5e53_d952_4e1c_509b08e0b3e2["parseText"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> dbffbbee_5e53_d952_4e1c_509b08e0b3e2
  9fe9aa1f_3948_0a47_c873_c987dae2f0ed["filter-parser.ts"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 9fe9aa1f_3948_0a47_c873_c987dae2f0ed
  b1101a58_6379_8514_36a1_9d7f75b2b23f["parseFilters"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> b1101a58_6379_8514_36a1_9d7f75b2b23f
  8d523c5a_6bbc_3e71_cb43_8252874a3ea9["model.ts"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 8d523c5a_6bbc_3e71_cb43_8252874a3ea9
  65a029a4_19bc_73e7_6dce_b5010c35150b["genAssignmentCode"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 65a029a4_19bc_73e7_6dce_b5010c35150b
  59b7cd33_3172_bd71_66da_0b9508449054["helpers.ts"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 59b7cd33_3172_bd71_66da_0b9508449054
  fb22e4d8_3c91_63a7_ee9d_526d8df61c58["addProp"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> fb22e4d8_3c91_63a7_ee9d_526d8df61c58
  51133883_ca33_6568_1819_239e506a3448["addAttr"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 51133883_ca33_6568_1819_239e506a3448
  33dc734b_e950_2417_cf6a_d52b1554e0cd["baseWarn"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 33dc734b_e950_2417_cf6a_d52b1554e0cd
  6d3095ae_d92b_c0a6_514d_fc6c4ef391ce["addHandler"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 6d3095ae_d92b_c0a6_514d_fc6c4ef391ce
  8fd77f23_ee00_f1d1_782f_87be6944e85f["addDirective"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 --> 8fd77f23_ee00_f1d1_782f_87be6944e85f
  style 320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import he from 'he'
import { parseHTML } from './html-parser'
import { parseText } from './text-parser'
import { parseFilters } from './filter-parser'
import { genAssignmentCode } from '../directives/model'
import { extend, cached, no, camelize, hyphenate } from 'shared/util'
import { isIE, isEdge, isServerRendering } from 'core/util/env'

import {
  addProp,
  addAttr,
  baseWarn,
  addHandler,
  addDirective,
  getBindingAttr,
  getAndRemoveAttr,
  getRawBindingAttr,
  pluckModuleFunction,
  getAndRemoveAttrByRegex
} from '../helpers'

import {
  ASTAttr,
  ASTElement,
  ASTIfCondition,
  ASTNode,
  ASTText,
  CompilerOptions
} from 'types/compiler'

export const onRE = /^@|^v-on:/
export const dirRE = process.env.VBIND_PROP_SHORTHAND
  ? /^v-|^@|^:|^\.|^#/
  : /^v-|^@|^:|^#/
export const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/
export const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/
const stripParensRE = /^\(|\)$/g
const dynamicArgRE = /^\[.*\]$/

const argRE = /:(.*)$/
export const bindRE = /^:|^\.|^v-bind:/
const propBindRE = /^\./
const modifierRE = /\.[^.\]]+(?=[^\]]*$)/g

export const slotRE = /^v-slot(:|$)|^#/

const lineBreakRE = /[\r\n]/
const whitespaceRE = /[ \f\t\r\n]+/g

const invalidAttributeRE = /[\s"'<>\/=]/

const decodeHTMLCached = cached(he.decode)

export const emptySlotScopeToken = `_empty_`

// configurable state
export let warn: any
let delimiters
let transforms
let preTransforms
// ... (940 more lines)

Domain

Subdomains

Frequently Asked Questions

What does index.ts do?
index.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, StyleProcessor subdomain.
What functions are defined in index.ts?
index.ts defines 26 function(s): addIfCondition, checkForAliasModel, checkInFor, createASTElement, findPrevElement, getSlotName, guardIESVGBug, isForbiddenTag, isTextTag, makeAttrsMap, and 16 more.
What does index.ts depend on?
index.ts imports 23 module(s): addAttr, addDirective, addHandler, addProp, baseWarn, compiler, env, filter-parser.ts, and 15 more.
What files import index.ts?
index.ts is imported by 3 file(s): error-detector.ts, index.ts, index.ts.
Where is index.ts in the architecture?
index.ts is located at src/compiler/parser/index.ts (domain: CompilerSFC, subdomain: StyleProcessor, directory: src/compiler/parser).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free