use of org.eclipse.n4js.jsdoc2spec.RepoRelativePath in project n4js by eclipse.
the class SourceEntryFactory method create.
/**
* Factory method used for any source element.
*/
static SourceEntry create(RepoRelativePathHolder rrph, RepoRelativePath rrpType, IdentifiableElement idElement) {
TModule containingModule = idElement.getContainingModule();
if (containingModule == null)
return null;
String module = containingModule.getModuleSpecifier().toString();
String elName = getElementName(idElement);
String delimiter = getDelimiter(idElement);
String property = getProperty(idElement);
RepoRelativePath rrpElement = rrph.get(idElement);
return newInstance(rrpType, rrpElement, module, elName, delimiter, property, idElement);
}
use of org.eclipse.n4js.jsdoc2spec.RepoRelativePath in project n4js by eclipse.
the class SpecIdentifiableElementSection method getSourceEntry.
private SourceEntry getSourceEntry(RepoRelativePathHolder repoPathHolder) {
RepoRelativePath rrp = repoPathHolder.get(typeElement);
SourceEntry se = SourceEntryFactory.create(repoPathHolder, rrp, idElement);
return se;
}
Aggregations