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
Hello,

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?

hg

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




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


Current Time: Fri May 14 11:30:48 GMT 2021

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

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

Back to the top