Home / File/ on.ts — vue Source File

on.ts — vue Source File

Architecture documentation for on.ts, a typescript file in the vue codebase. 2 imports, 1 dependents.

File typescript CompilerSFC TemplateTransformer 2 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  5c0208e0_0187_5a99_e09e_c33ddf2e0e01["on.ts"]
  02e43f4a_da65_7acd_5a98_0f017554a159["index"]
  5c0208e0_0187_5a99_e09e_c33ddf2e0e01 --> 02e43f4a_da65_7acd_5a98_0f017554a159
  47ae9f26_59d1_fab2_349f_966f5d15495a["compiler"]
  5c0208e0_0187_5a99_e09e_c33ddf2e0e01 --> 47ae9f26_59d1_fab2_349f_966f5d15495a
  16e3dbd8_b82d_6cfe_f578_20a33c4b2585["index.ts"]
  16e3dbd8_b82d_6cfe_f578_20a33c4b2585 --> 5c0208e0_0187_5a99_e09e_c33ddf2e0e01
  style 5c0208e0_0187_5a99_e09e_c33ddf2e0e01 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { warn } from 'core/util/index'
import { ASTDirective, ASTElement } from 'types/compiler'

export default function on(el: ASTElement, dir: ASTDirective) {
  if (__DEV__ && dir.modifiers) {
    warn(`v-on without argument does not support modifiers.`)
  }
  el.wrapListeners = (code: string) => `_g(${code},${dir.value})`
}

Domain

Subdomains

Functions

Dependencies

  • compiler
  • index

Frequently Asked Questions

What does on.ts do?
on.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, TemplateTransformer subdomain.
What functions are defined in on.ts?
on.ts defines 1 function(s): on.
What does on.ts depend on?
on.ts imports 2 module(s): compiler, index.
What files import on.ts?
on.ts is imported by 1 file(s): index.ts.
Where is on.ts in the architecture?
on.ts is located at src/compiler/directives/on.ts (domain: CompilerSFC, subdomain: TemplateTransformer, directory: src/compiler/directives).

Analyze Your Own Codebase

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

Try Supermodel Free