Search in sources :

Example 1 with RepoRelativePath

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);
}
Also used : RepoRelativePath(org.eclipse.n4js.jsdoc2spec.RepoRelativePath) TModule(org.eclipse.n4js.ts.types.TModule)

Example 2 with RepoRelativePath

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;
}
Also used : RepoRelativePath(org.eclipse.n4js.jsdoc2spec.RepoRelativePath)

Aggregations

RepoRelativePath (org.eclipse.n4js.jsdoc2spec.RepoRelativePath)2 TModule (org.eclipse.n4js.ts.types.TModule)1