use of org.eclipse.n4js.ts.types.TypeDefs in project n4js by eclipse.
the class BuiltInTypeScope method buildMap.
@Override
protected void buildMap(Resource resource, Map<QualifiedName, IEObjectDescription> elements) {
TypeDefs typeDefinitions = (TypeDefs) resource.getContents().get(0);
for (Type type : typeDefinitions.getTypes()) {
if (!(type instanceof VirtualBaseType)) {
IEObjectDescription description = EObjectDescription.create(type.getName(), type);
elements.put(description.getName(), description);
}
}
}
use of org.eclipse.n4js.ts.types.TypeDefs in project n4js by eclipse.
the class VirtualBaseTypeScope method buildMap.
@Override
protected void buildMap(Resource resource, Map<QualifiedName, IEObjectDescription> elements) {
TypeDefs typeDefinitions = (TypeDefs) resource.getContents().get(0);
for (Type type : typeDefinitions.getTypes()) {
if (type instanceof VirtualBaseType) {
// only virtualBase children.
IEObjectDescription description = EObjectDescription.create(type.getName(), type);
elements.put(description.getName(), description);
}
}
}
Aggregations