MarkusAmshove / natls

Language Server implementation for the Natural 4GL programming language
MIT License
13 stars 3 forks source link

Parse DDM subdescriptors #508

Open MarkusAmshove opened 2 months ago

MarkusAmshove commented 2 months ago

Source fields from subdescriptors will now be added as descriptors with type SUBDESCRIPTOR.

MarkusAmshove commented 2 months ago

@awilkins do you happen to know if predict generates something different when the field itself is a descriptor?

Having this case:

  1 AG A-SUBDESCRIPTOR                   A   25  N S
*      -------- SOURCE FIELD(S) -------
*      SUB-ONE (1-15)
*      SUB-TWO (15-25)
*      SUB-THREE (1-1)

How do I know if A-SUBDESCRIPTOR is a descriptor itself? The documentation says "A subdescriptor is a descriptor derived from a portion of an elementary field. The elementary field may or may not be a descriptor itself." So there must be a distinction :) Do you happen to know if such a field in one of your DDMs is also a descriptor? And maybe have one that is not a descriptor, so we can see if we can distinguish them?

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud