Search in sources :

Example 1 with RootNode

use of org.eclipse.xtext.nodemodel.impl.RootNode in project xtext-core by eclipse.

the class SerializationConversionContext method fillGrammarElementToIdMap.

protected void fillGrammarElementToIdMap(XtextResource r) {
    IParseResult parseResult = r.getParseResult();
    if (parseResult != null) {
        RootNode it = (RootNode) parseResult.getRootNode();
        it.fillGrammarElementToIdMap(grammarElementToIdMap, grammarIdToURIMap);
    }
}
Also used : RootNode(org.eclipse.xtext.nodemodel.impl.RootNode) IParseResult(org.eclipse.xtext.parser.IParseResult)

Aggregations

RootNode (org.eclipse.xtext.nodemodel.impl.RootNode)1 IParseResult (org.eclipse.xtext.parser.IParseResult)1