-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
522 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
@Component | ||
export default class Child extends Vue { | ||
// Fire when the form is cleared | ||
// @arg The argument is a boolean value representing xxx | ||
@Emit() | ||
onClick() {} | ||
@Emit('reset') | ||
resetHandle() {} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
@Component | ||
export default class Child extends Vue { | ||
/** | ||
* @vuese | ||
* This is a function exposed as an interface | ||
* | ||
* @arg The first parameter is a Boolean value that represents... | ||
*/ | ||
someMethod(a) { | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
@Component | ||
export default class Child extends Vue { | ||
// Description of prop | ||
@Prop(Number) | ||
a: number | ||
@Prop([Number, String]) | ||
b: number | string | ||
@Prop({ | ||
type: Number, | ||
// The default value is 1 | ||
default: 1, | ||
required: true | ||
}) | ||
c: number | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/parser/__test__/__snapshots__/parseJavascript.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.