Add `read-only` modifier to feature declarations

Open
#24 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
compilers

Research direction

Start by locating the feature declaration syntax and the meta-model generator referenced in the issue. Trace how existing modifiers such as multiplicity are parsed and represented, then determine how the target meta-model stores annotations. Done means declarations accept read-only and the generated meta-model preserves that information.

Written by the indexing model from the issue text.

Description

area: language

To indicate that features can be read, but not edited, in a view, e.g., in an analysis view or for aggregated values, it should be possible to mark them as read-only. This requires changes in at least two places:

  • The feature syntax needs to be extended with the read-only declaration. One possibility would be to add it to the list of feature modifiers, like multiplicity. Example: count : int [read-only] := ...
  • The meta-model generator needs to incorporate the read-only modifier in the target meta-model. One possibility would be a custom meta-model annotation.
Dominant language
Java
Stars
3
Forks
6
Avg merge
19h 10m
Merged PRs (30d)
34

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vitruv-tools/NeoJoin

All issues in vitruv-tools/NeoJoin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.