Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Formatter2 Line Numbers(How to get the start line number for a semantic region)
Formatter2 Line Numbers [message #1839651] Thu, 25 March 2021 08:15
Henning M is currently offline Henning MFriend
Messages: 2
Registered: March 2021
Junior Member

I want to get the line number of a semantic region. Is that possible?

A DSL has statements which contain the keyword "create".
How can the start line be determined?


def dispatch void format(Statement statement, extension IFormattableDocument document) {
    val keyword = statement.regionFor.keyword("create")
    val lineNumber = ????

Thanksfor your help
Previous Topic:Formatter2 Text Replacement
Next Topic:Xtext leaving Eclipse simultaneos release with 2021-06
Goto Forum:

Current Time: Sun Jun 20 20:34:14 GMT 2021

Powered by FUDForum. Page generated in 0.02195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top