chore: fix comment typos (#94)

This commit is contained in:
Carlos Rodrigues
2019-10-05 15:35:19 +01:00
committed by Evan You
parent 12abcba2c5
commit 23ff681418
8 changed files with 12 additions and 12 deletions

View File

@@ -113,7 +113,7 @@ export function processExpression(
node.name = `_ctx.${node.name}`
ids.push(node)
} else if (!isStaticPropertyKey(node, parent)) {
// also generate sub-expressioms for other identifiers for better
// also generate sub-expressions for other identifiers for better
// source map support. (except for property keys which are static)
ids.push(node)
}
@@ -126,7 +126,7 @@ export function processExpression(
enter(child, parent) {
if (
child.type === 'Identifier' &&
// do not record as scope variable if is a destrcuture key
// do not record as scope variable if is a destructured key
!isStaticPropertyKey(child, parent) &&
// do not record if this is a default value
// assignment of a destructured variable
@@ -170,7 +170,7 @@ export function processExpression(
}
})
// We break up the coumpound expression into an array of strings and sub
// We break up the compound expression into an array of strings and sub
// expressions (for identifiers that have been prefixed). In codegen, if
// an ExpressionNode has the `.children` property, it will be used instead of
// `.content`.

View File

@@ -135,7 +135,7 @@ export const transformFor = createStructuralDirectiveTransform(
}
} else if (isTemplate) {
// <template v-for="...">
// should genereate a fragment block for each loop
// should generate a fragment block for each loop
childBlock = createBlockExpression(
[
helper(FRAGMENT),

View File

@@ -45,7 +45,7 @@ export const transformOn: DirectiveTransform = (dir, context) => {
// handler processing
if (dir.exp) {
// exp is guarunteed to be a simple expression here because v-on w/ arg is
// exp is guaranteed to be a simple expression here because v-on w/ arg is
// skipped by transformExpression as a special case.
let exp: ExpressionNode = dir.exp as SimpleExpressionNode
const isInlineStatement = !(