Skip to content
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

Highlighting instance methods #136

Open
sohomsahaun opened this issue Mar 4, 2021 · 7 comments
Open

Highlighting instance methods #136

sohomsahaun opened this issue Mar 4, 2021 · 7 comments

Comments

@sohomsahaun
Copy link

foo = function(){} highlights foo only when it is defined in the Create event in an object. Would be nice if it would support other events as well!

@YellowAfterlife
Copy link
Owner

Is this for doing some parts of init in user events?

@sohomsahaun
Copy link
Author

Yup.

@sohomsahaun
Copy link
Author

Another potential use case:

declare_vars = function() {
    foo = 0;
};
declare_vars();
bar = foo;    // "foo" doesn't get highlighted

@YellowAfterlife
Copy link
Owner

If declare_vars is out of the object entirely, you can use @interface and @implements

@sohomsahaun
Copy link
Author

Mm, interesting.

I was talking about declare_vars being in the create event though.

@YellowAfterlife
Copy link
Owner

"Allow non-top level assignments" checkbox in linter preferences is a workaround in the current versions, although I would still like to support this more properly.

@champak86

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants