test: tests for v-on transform

This commit is contained in:
Evan You
2019-09-24 22:39:20 -04:00
parent 597ada36ed
commit 84909648e7
8 changed files with 182 additions and 26 deletions

View File

@@ -1,5 +1,8 @@
import { SourceLocation, Position } from './ast'
export const isSimpleIdentifier = (name: string): boolean =>
!/^\d|[^\w]/.test(name)
export function getInnerRange(
loc: SourceLocation,
offset: number,