Skip to content

Commit

Permalink
fix(ts): fix prop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 17, 2022
1 parent adcc52a commit f3f5e9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ singleExpression
| singleExpression '?'? '!'? '.'? '[' expressionSequence ']' # MemberIndexExpression
// for: `onHotUpdateSuccess?.();`
// onChange?.(userName || password || null)
| singleExpression ('?' | '!')* '.' '#'? identifierName? typeArguments? ('?' | '!')? # MemberDotExpression
| singleExpression ('?' | '!')* '.' '#'? identifierName typeArguments? ('?' | '!')? # MemberDotExpression
// for: `onHotUpdateSuccess?.();`
| singleExpression ('?' | '!')* '.' '#'? '(' identifierName? ')' ('?' | '!')? # MemberDotExpression
// request('/api/system-info', { method: 'GET' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class TypeScriptAnalyserTest {
}

@Test
@Disabled
fun chai_define() {
val content = this::class.java.getResource("/dts/index.d.ts")!!.readText()
val codeFile = TypeScriptAnalyser().analysis(content, "/dts/index.d.ts")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class PopupDirective {
return '已完成';
}
default: {
return '';
return '';a
}
}
}
Expand Down

0 comments on commit f3f5e9f

Please sign in to comment.