anz-bank / sysl

Sysl (pronounced "sizzle") is a system specification language
https://sysl.io
Apache License 2.0
122 stars 42 forks source link

Sysl parser doesn't populate source_context for stmt #990

Open orlade-anz opened 4 years ago

springwiz commented 4 years ago

@orlade-anz Can you shed some light on this issue? What exactly is the need here? I see that there is already a source context associated with stmt in the sysl protobuf. for eg.

     "stmt": [......],
     "sourceContext": {
      "file": "args.sysl",
      "start": {
       "line": 12,
       "col": 4
      },
      "end": {
       "line": 17
      }
     }
    }
   },
orlade-anz commented 4 years ago

Each element of "stmt": [......] should have a source_context of its own.