question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[haxe] Option to have 'private' in generators

See original GitHub issue

I’m not sure if I miss something in the settings, but we try to change our code convention by adding “private” on all private fields and functions. Mostly for readability and have it more consistent across other code languages we use.

Now when pressing the magic ctrl-shift-1 it just generates var myField or function myFunction(), we like to choose to have it generated like private var myField or private function myFunction().

Can there be an option to have “private” be part of the generation? Of course this also should happen on overrides and statics etc.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
SlavaRacommented, Dec 8, 2016

I do PR with fix in this week

3reactions
Meychicommented, Sep 30, 2015

I would also like to have this setting. @elsassph?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visibility - Haxe - The Cross-platform Toolkit
Fields are by default private, meaning that only the class and its sub-classes may access them. They can be made public by using...
Read more >
Option - Haxe - The Cross-platform Toolkit
An Option is an enum in the Haxe Standard Library which is defined like so: ... Option; class Main { static public function...
Read more >
Property - Haxe - The Cross-platform Toolkit
Next to variables, properties are the second option for dealing with data on a class. Unlike variables, however, they offer more control of...
Read more >
chxdoc (1.3.0)
See CHANGELOG - Haxe documentation generator. ... versions of the documentation would be created, one with all the private data documented (in docs_dev), ......
Read more >
Access Control - Haxe - The Cross-platform Toolkit
Access control can be used if the basic visibility options are not sufficient. It is applicable at class-level and at field-level and knows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found