apache / apache/royale-asjs

private var with [Bindable]

Open
#390 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

This declaration:

```
[Bindable]
private var someVar: String;
```

js output is:

/** @export
* @private
* @type {string} */
com_something_SomeClass_somevar: {
/** @this {com.something.SomeClass} */
get: function() {
return this.com_SomeClass_somevar_;
},

makes compiler output this warning:

feb 02, 2019 10:49:20 AM com.google.javascript.jscomp.LoggerErrorManager println
ADVERTENCIA: /Users/carlosrovira/webapp/javascript/bin/js-debug/com/something/SomeClass.js:437: WARNING - Parse error. extra visibility tag
* @private
^

why is compiler warning about it? the output seems right to me

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the generated com/something/SomeClass.js output and the compiler warning for the private [Bindable] declaration. Reproduce the warning from the shown ActionScript declaration, then inspect how the compiler emits the @export and @private annotations; done means the warning's cause is documented or corrected without breaking the generated accessor output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.