Xtext, how to properly extend DefaultAntlrTokenToAttributeIdMapper










0















I am trying to provide id mapping for our web editor context for things such as detecting whether a region is hoverable or not. From my reading I figured the place to do this was with AntlrTokenToAttributeIdMapper and not HighlightingCalculator. However I have run into multiple issues implementing this. All of my files for this live in my dsl.ide package. First i created this class:



@Singleton
class STAntlrTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper

override protected calculateId(String tokenName, int tokenType)
println("Calculating id for " + tokenName)





Then I bound it in my dslIdeModule:



def Class<? extends DefaultAntlrTokenToAttributeIdMapper> bindDefaultAntlrTokenToAttributeIdMapper() 
return STAntlrTokenToAttributeIdMapper



Upon doing a jettyRun, I got this error on startup:



No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:57)


Following the guidance provided on the xtext forum here. I added this to my runtime module:



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named("org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING")).to(AntlrTokenDefProvider);



This caused my runtime error to go away but I am still never hitting the calculateId method in my token mapper. Am I doing my bindings correctly, using the right class for my purpose, or is there some other configuration I am missing?



EDIT1: It seems like it would be easy enough to do this in my HighlightingCalculator which I am already using to provide syntax highlighting. Would there be any reason not to use it instead of the antlrTokenToAttributeIdMapper?



EDIT2: I made the suggested change for my binding to



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(AntlrTokenDefProvider);



But I am still not hitting my mapping class










share|improve this question
























  • Looks Like you Need to subclass the Other Mapper clas (UiPackage)

    – Christian Dietrich
    Nov 14 '18 at 13:13











  • => there are two classes. one in the ide package, one in the ui. make sure you customize the correct ones

    – Christian Dietrich
    Nov 14 '18 at 14:01











  • Yes that was definitely incorrect, I should be using the one from xtext.ide.

    – Zannith
    Nov 14 '18 at 15:38















0















I am trying to provide id mapping for our web editor context for things such as detecting whether a region is hoverable or not. From my reading I figured the place to do this was with AntlrTokenToAttributeIdMapper and not HighlightingCalculator. However I have run into multiple issues implementing this. All of my files for this live in my dsl.ide package. First i created this class:



@Singleton
class STAntlrTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper

override protected calculateId(String tokenName, int tokenType)
println("Calculating id for " + tokenName)





Then I bound it in my dslIdeModule:



def Class<? extends DefaultAntlrTokenToAttributeIdMapper> bindDefaultAntlrTokenToAttributeIdMapper() 
return STAntlrTokenToAttributeIdMapper



Upon doing a jettyRun, I got this error on startup:



No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:57)


Following the guidance provided on the xtext forum here. I added this to my runtime module:



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named("org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING")).to(AntlrTokenDefProvider);



This caused my runtime error to go away but I am still never hitting the calculateId method in my token mapper. Am I doing my bindings correctly, using the right class for my purpose, or is there some other configuration I am missing?



EDIT1: It seems like it would be easy enough to do this in my HighlightingCalculator which I am already using to provide syntax highlighting. Would there be any reason not to use it instead of the antlrTokenToAttributeIdMapper?



EDIT2: I made the suggested change for my binding to



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(AntlrTokenDefProvider);



But I am still not hitting my mapping class










share|improve this question
























  • Looks Like you Need to subclass the Other Mapper clas (UiPackage)

    – Christian Dietrich
    Nov 14 '18 at 13:13











  • => there are two classes. one in the ide package, one in the ui. make sure you customize the correct ones

    – Christian Dietrich
    Nov 14 '18 at 14:01











  • Yes that was definitely incorrect, I should be using the one from xtext.ide.

    – Zannith
    Nov 14 '18 at 15:38













0












0








0








I am trying to provide id mapping for our web editor context for things such as detecting whether a region is hoverable or not. From my reading I figured the place to do this was with AntlrTokenToAttributeIdMapper and not HighlightingCalculator. However I have run into multiple issues implementing this. All of my files for this live in my dsl.ide package. First i created this class:



@Singleton
class STAntlrTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper

override protected calculateId(String tokenName, int tokenType)
println("Calculating id for " + tokenName)





Then I bound it in my dslIdeModule:



def Class<? extends DefaultAntlrTokenToAttributeIdMapper> bindDefaultAntlrTokenToAttributeIdMapper() 
return STAntlrTokenToAttributeIdMapper



Upon doing a jettyRun, I got this error on startup:



No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:57)


Following the guidance provided on the xtext forum here. I added this to my runtime module:



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named("org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING")).to(AntlrTokenDefProvider);



This caused my runtime error to go away but I am still never hitting the calculateId method in my token mapper. Am I doing my bindings correctly, using the right class for my purpose, or is there some other configuration I am missing?



EDIT1: It seems like it would be easy enough to do this in my HighlightingCalculator which I am already using to provide syntax highlighting. Would there be any reason not to use it instead of the antlrTokenToAttributeIdMapper?



EDIT2: I made the suggested change for my binding to



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(AntlrTokenDefProvider);



But I am still not hitting my mapping class










share|improve this question
















I am trying to provide id mapping for our web editor context for things such as detecting whether a region is hoverable or not. From my reading I figured the place to do this was with AntlrTokenToAttributeIdMapper and not HighlightingCalculator. However I have run into multiple issues implementing this. All of my files for this live in my dsl.ide package. First i created this class:



@Singleton
class STAntlrTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper

override protected calculateId(String tokenName, int tokenType)
println("Calculating id for " + tokenName)





Then I bound it in my dslIdeModule:



def Class<? extends DefaultAntlrTokenToAttributeIdMapper> bindDefaultAntlrTokenToAttributeIdMapper() 
return STAntlrTokenToAttributeIdMapper



Upon doing a jettyRun, I got this error on startup:



No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ide.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:57)


Following the guidance provided on the xtext forum here. I added this to my runtime module:



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named("org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING")).to(AntlrTokenDefProvider);



This caused my runtime error to go away but I am still never hitting the calculateId method in my token mapper. Am I doing my bindings correctly, using the right class for my purpose, or is there some other configuration I am missing?



EDIT1: It seems like it would be easy enough to do this in my HighlightingCalculator which I am already using to provide syntax highlighting. Would there be any reason not to use it instead of the antlrTokenToAttributeIdMapper?



EDIT2: I made the suggested change for my binding to



def void configureHighlightingTokenDefProvider(Binder binder) 
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(AntlrTokenDefProvider);



But I am still not hitting my mapping class







dsl xtext xtend






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 16:54







Zannith

















asked Nov 13 '18 at 17:46









ZannithZannith

222113




222113












  • Looks Like you Need to subclass the Other Mapper clas (UiPackage)

    – Christian Dietrich
    Nov 14 '18 at 13:13











  • => there are two classes. one in the ide package, one in the ui. make sure you customize the correct ones

    – Christian Dietrich
    Nov 14 '18 at 14:01











  • Yes that was definitely incorrect, I should be using the one from xtext.ide.

    – Zannith
    Nov 14 '18 at 15:38

















  • Looks Like you Need to subclass the Other Mapper clas (UiPackage)

    – Christian Dietrich
    Nov 14 '18 at 13:13











  • => there are two classes. one in the ide package, one in the ui. make sure you customize the correct ones

    – Christian Dietrich
    Nov 14 '18 at 14:01











  • Yes that was definitely incorrect, I should be using the one from xtext.ide.

    – Zannith
    Nov 14 '18 at 15:38
















Looks Like you Need to subclass the Other Mapper clas (UiPackage)

– Christian Dietrich
Nov 14 '18 at 13:13





Looks Like you Need to subclass the Other Mapper clas (UiPackage)

– Christian Dietrich
Nov 14 '18 at 13:13













=> there are two classes. one in the ide package, one in the ui. make sure you customize the correct ones

– Christian Dietrich
Nov 14 '18 at 14:01





=> there are two classes. one in the ide package, one in the ui. make sure you customize the correct ones

– Christian Dietrich
Nov 14 '18 at 14:01













Yes that was definitely incorrect, I should be using the one from xtext.ide.

– Zannith
Nov 14 '18 at 15:38





Yes that was definitely incorrect, I should be using the one from xtext.ide.

– Zannith
Nov 14 '18 at 15:38












1 Answer
1






active

oldest

votes


















1














something like



class MyDslIdeModule extends AbstractMyDslIdeModule 

def Class<? extends DefaultAntlrTokenToAttributeIdMapper>
bindDefaultAntlrTokenToAttributeIdMapper()
MyDslAntlrTokenToAttributeIdMapper


def void configureHighlightingTokenDefProvider(Binder binder)
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(
AntlrTokenDefProvider);




should work






share|improve this answer























  • I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

    – Zannith
    Nov 14 '18 at 15:32












  • Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

    – Zannith
    Nov 14 '18 at 16:27











  • The framework pulls only holds true for default configs

    – Christian Dietrich
    Nov 14 '18 at 17:06











  • I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

    – Zannith
    Nov 14 '18 at 17:27










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53286791%2fxtext-how-to-properly-extend-defaultantlrtokentoattributeidmapper%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














something like



class MyDslIdeModule extends AbstractMyDslIdeModule 

def Class<? extends DefaultAntlrTokenToAttributeIdMapper>
bindDefaultAntlrTokenToAttributeIdMapper()
MyDslAntlrTokenToAttributeIdMapper


def void configureHighlightingTokenDefProvider(Binder binder)
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(
AntlrTokenDefProvider);




should work






share|improve this answer























  • I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

    – Zannith
    Nov 14 '18 at 15:32












  • Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

    – Zannith
    Nov 14 '18 at 16:27











  • The framework pulls only holds true for default configs

    – Christian Dietrich
    Nov 14 '18 at 17:06











  • I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

    – Zannith
    Nov 14 '18 at 17:27















1














something like



class MyDslIdeModule extends AbstractMyDslIdeModule 

def Class<? extends DefaultAntlrTokenToAttributeIdMapper>
bindDefaultAntlrTokenToAttributeIdMapper()
MyDslAntlrTokenToAttributeIdMapper


def void configureHighlightingTokenDefProvider(Binder binder)
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(
AntlrTokenDefProvider);




should work






share|improve this answer























  • I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

    – Zannith
    Nov 14 '18 at 15:32












  • Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

    – Zannith
    Nov 14 '18 at 16:27











  • The framework pulls only holds true for default configs

    – Christian Dietrich
    Nov 14 '18 at 17:06











  • I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

    – Zannith
    Nov 14 '18 at 17:27













1












1








1







something like



class MyDslIdeModule extends AbstractMyDslIdeModule 

def Class<? extends DefaultAntlrTokenToAttributeIdMapper>
bindDefaultAntlrTokenToAttributeIdMapper()
MyDslAntlrTokenToAttributeIdMapper


def void configureHighlightingTokenDefProvider(Binder binder)
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(
AntlrTokenDefProvider);




should work






share|improve this answer













something like



class MyDslIdeModule extends AbstractMyDslIdeModule 

def Class<? extends DefaultAntlrTokenToAttributeIdMapper>
bindDefaultAntlrTokenToAttributeIdMapper()
MyDslAntlrTokenToAttributeIdMapper


def void configureHighlightingTokenDefProvider(Binder binder)
binder.bind(ITokenDefProvider).annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)).to(
AntlrTokenDefProvider);




should work







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 14 '18 at 14:12









Christian DietrichChristian Dietrich

8,10631626




8,10631626












  • I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

    – Zannith
    Nov 14 '18 at 15:32












  • Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

    – Zannith
    Nov 14 '18 at 16:27











  • The framework pulls only holds true for default configs

    – Christian Dietrich
    Nov 14 '18 at 17:06











  • I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

    – Zannith
    Nov 14 '18 at 17:27

















  • I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

    – Zannith
    Nov 14 '18 at 15:32












  • Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

    – Zannith
    Nov 14 '18 at 16:27











  • The framework pulls only holds true for default configs

    – Christian Dietrich
    Nov 14 '18 at 17:06











  • I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

    – Zannith
    Nov 14 '18 at 17:27
















I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

– Zannith
Nov 14 '18 at 15:32






I changed my binding to that and the error is gone, but my calculateId method is still not being hit. Correct me if I am wrong but this should be used automatically by xtext/web framework? It is not something I need to manually make calls to? Same as highlighting and the highglightingCalculator

– Zannith
Nov 14 '18 at 15:32














Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

– Zannith
Nov 14 '18 at 16:27





Hm, So I guess there is something wrong with my underlying assumption that this is something the framework pulls in on its own. I removed all of my bindings and debugged, but even the default/abstract token mapper is not being hit. It is hard to tell when and how this is supposed to be used as I couldn't find any documentation besides forum posts. Btw Christian, thank you for your continued support as I am learn the nuances of xtext

– Zannith
Nov 14 '18 at 16:27













The framework pulls only holds true for default configs

– Christian Dietrich
Nov 14 '18 at 17:06





The framework pulls only holds true for default configs

– Christian Dietrich
Nov 14 '18 at 17:06













I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

– Zannith
Nov 14 '18 at 17:27





I see, well I was able to get the functionality I needed by using the SemanticHighlightingCalculator. Still a little confused on the intended use case for each class, but I have probably used up enough of your time for today :) Thanks again!

– Zannith
Nov 14 '18 at 17:27

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53286791%2fxtext-how-to-properly-extend-defaultantlrtokentoattributeidmapper%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto