INRIA / INRIA/spoon

feature: add CtType#getPackageReference, where the returned object contains the position of the `package line`

Open
#1,912 7 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

![screen shot 2018-03-15 at 10 17 45](https://user-images.githubusercontent.com/1103924/37454189-2f4b6f9c-283a-11e8-94b4-19de0a557dc3.png)

Is this expected behavior? Reading the docs I spotted this comment:

> A package should return the position of the package-info file if it exists. The parent of a package is another package which needs to have an own package-info file.

I can't find a CtPackage that has a defined position (when not using package-info).
I was expecting to get the position of the package statement in my source code.
I'm using Spoon 6.2.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.