MCPcopy
hub / github.com/vuejs/core / warn

Method warn

packages/compiler-sfc/src/script/context.ts:142–144  ·  view source on GitHub ↗
(msg: string, node: Node, scope?: TypeScope)

Source from the content-addressed store, hash-verified

140 }
141
142 warn(msg: string, node: Node, scope?: TypeScope): void {
143 warn(generateError(msg, node, this, scope))
144 }
145
146 error(msg: string, node: Node, scope?: TypeScope): never {
147 throw new Error(

Callers 15

warnFunction · 0.80
normalizeCssVarValueFunction · 0.80
renderToStreamFunction · 0.80
ssrRenderDynamicAttrFunction · 0.80
warnFunction · 0.80
processWithDefaultsFunction · 0.80
compileSFCScriptFunction · 0.80
baseParseFunction · 0.80
defaultOnWarnFunction · 0.80
warnFunction · 0.80
reloadFunction · 0.80

Calls 2

warnFunction · 0.90
generateErrorFunction · 0.85

Tested by 1

compileSFCScriptFunction · 0.64