btford / btford/astral-angular-annotate

Parser stops if first chained method is already annotated

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi,

The following code does not get annotated (output remains unchanged):

``` js
angular.module('app').controller('myFirstController', [
'$scope',
function ($scope) {
$scope.foo1 = '';
}
]).controller('mySecondController', function ($scope) {
$scope.foo2 = '';
});
```

It seems that the parser stops at the first method as it is already annotated.

Is it the expected behavior ?

I would expect the following output:

``` js
angular.module('app').controller('myFirstController', [
'$scope',
function ($scope) {
$scope.foo1 = '';
}
]).controller('mySecondController', [
'$scope',
function ($scope) {
$scope.foo2 = '';
}
]);
```

I could take a look at the parser code but i am not sure which file should be checked. Any guidance would be appreciated.

Cheers and keep up the good work!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.