Comments (10)
There's nothing Dox can do to distinguish this with what the compiler currently outputs.
from dox.
Maybe my other issue over at the haxe repo shouldn't have been closed then?
from dox.
There's nothing we can do about that either. The concept of non-nullable optional basic types only makes sense on the Flash target anyway. All other targets require the type to be nullable in order to implement the optional/default value behavior.
from dox.
Last time I checked, the following gives a compiler error on all static targets:
defaultValue(null);
private function defaultValue(value:Int = 0)
{
trace(value);
}
On static platforms, null can't be used as basic type Int
So it doesn't seem accurate that this only makes sense on flash? What happens internally to make this happen doesn't really matter to the dev using the API, you simply can't pass null
.
from dox.
Maybe Dox could just always omit the ? if there's a default value. I guess the type itself should indicate nullability.
from dox.
I think that would be a good solution.
from dox.
Are you sure this is working correctly?
(left - generated API docs, right - actual code)
The API docs here shouldn't have a ?
here for recursive
.
from dox.
Is that the Flambe theme? It's very possible this has to be fixed for it specifically because the original fix was template-based. Try applying it to the appropriate flambe template.
from dox.
Ah, I didn't realize the fix was part of the theme. Thanks, I'll try that.
from dox.
Yeah, that did it. PR here: #97
from dox.
Related Issues (20)
- Interfaces documentation HOT 4
- Overloads only show one documention
- Need skimmable index per class HOT 4
- Constraints not listed in documentation HOT 1
- Packages names sometimes required HOT 4
- [docs] link in sys.FileSystem documentation points to wrong page HOT 1
- [Feature Request] Search in content, not only package/class names
- Missing closing brace in topbar.mtt
- GitHub warns about "high severity" security concerns about JQuery 1.9.1 HOT 4
- Special characters not escaped correctly HOT 1
- Link generation: sys.io.* links to cs.system.* HOT 1
- Are module-level fields supported?
- sys.io.Process shows to cs.system.diagnostics.Process HOT 2
- Example in readme does not work HOT 1
- Replace neko with --interp ? HOT 4
- Ignore lib on xml generation? HOT 1
- [java] Expected attribute name HOT 1
- Abstract types: instance members are documented as static members. HOT 1
- Support documenting metadata HOT 6
- Problem call document generation.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dox.