-
-
Notifications
You must be signed in to change notification settings - Fork 184
Fix no self in file check in call visitor #1510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bcba991
Cleanup code / make more readable
Z3rio 80ee201
Further readability fix
Z3rio 7614dd9
Fix noSelfInFile check for call visitor
Z3rio 562893f
Merge branch 'master' into noSelfInFile-fix
Z3rio f3d73a1
Fix/further rewrite of `isContextualCallExpression`
Z3rio b775bf3
Further readability improvements
Z3rio 6cdddb2
Change back returns in `isContextualCallExpression`
Z3rio 58bb3f4
Add testcase for noSelfInFile over noImplicitSelf
Z3rio 634cce6
Simplify testcase
Z3rio 36900b4
Improve NoSelfInFile check
Z3rio 8074909
Further hasnoselfinfile fix
Z3rio dcdf042
Merge branch 'TypeScriptToLua:master' into noSelfInFile-fix
Z3rio 8b581e0
wrap declaration statement again
Z3rio d9430ec
Add noSelfInFile check for func declared in other file
Z3rio 969e3d3
Remove accidentally commited debug logs
Z3rio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,6 @@ | ||
| /* eslint-disable spaced-comment */ | ||
| /* eslint-disable @typescript-eslint/ban-types */ | ||
|
|
||
| /** @noSelfInFile **/ | ||
| export const func: Function = () => 1; | ||
| export const result = func(1); |
This file contains hidden or 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,4 @@ | ||
| import { func, result } from "./functions"; | ||
|
|
||
| export const result1 = result; | ||
| export const result2 = func(1); |
This file contains hidden or 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,12 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "strict": true, | ||
| "moduleResolution": "Node", | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "target": "esnext", | ||
| "lib": ["esnext"], | ||
| "types": [], | ||
| "rootDir": "." | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.