-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactoring #40
Comments
How about For instance, here in TypeScript when I am not fully sure of the type, and the type could be obfuscated from generics. Like for this trivial example: points_arr := make([]f32, 3 * n) |
Added it to the list ;-) |
@Dima-369 Added support for "Specify type explicitly". I already found a little bug. The intention is not triggered at the end of an identifier, only at the beginning and in the middle of it
so if the cursor is after the "r" it won't trigger |
Cool, I tested with But, it fails on // "Argv" arguments converted to Odin strings
args := _alloc_command_line_arguments() It also fails on this: |
Yes, procedures with multiple values are not supported yet. Basically I wasn't sure how Odin handles multiple return values, when stored in only one variable. Would it be always safe to just infer the type of the first return argument?
|
I think so, yes. |
Got ya. There is so much more to this functionality. I thought about this feature this morning and there is a lot more to it that I haven't yet implemented. With composite types like procedures types maps and instantiated poly structs it should not work either. Basically you have to analyze all the types a type might contain and import the package they're in, or use the import that is already defined in the current file. |
Add refactoring handlers for:
The text was updated successfully, but these errors were encountered: