SolidityImportedNamespaceAwareLocalScopeProvider.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:solidity-ide 作者:
protected IScope getResourceScope(Resource res, EReference reference) {
    if (reference == TypesPackage.Literals.COMPLEX_TYPE__SUPER_TYPES)
        return super.getResourceScope(res, reference);
    EObject context = res.getContents().get(0);
    IScope globalScope = getGlobalScope(res, reference);
    List<ImportNormalizer> normalizers = getSuperTypeImports(res, reference);
    if (!normalizers.isEmpty()) {
        globalScope = createImportScope(globalScope, normalizers, null, reference.getEReferenceType(),
                isIgnoreCase(reference));
    }
    return getResourceScope(globalScope, context, reference);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号