Examples of CanAppearWithoutContext


Examples of org.openquark.cal.compiler.SourceModel.CALDoc.CrossReference.CanAppearWithoutContext

    private static SourceModification makeContextifySeeBlockModification(ModuleTypeInfo moduleTypeInfo, String sourceText, See.WithoutContext seeBlock, QualifiedName oldName, QualifiedName newName, Category category, boolean qualifyAllRenamedReferences, ModuleNameResolver.RenameMapping collateralDamageModuleRenameMapping) {

        StringBuilder sb = new StringBuilder();
       
        for(int i = 0, nReferences = seeBlock.getNReferencedNames(); i < nReferences; i++) {
            CanAppearWithoutContext reference = seeBlock.getNthReferencedName(i);
               
            if(reference instanceof CanAppearWithoutContext.Function) {
                CanAppearWithoutContext.Function functionReference = (CanAppearWithoutContext.Function)reference;
               
                Name.Function functionName = functionReference.getName();
                CanAppearWithoutContext newReference = reference;
               
                if(refersTo(moduleTypeInfo, functionName, oldName, category)) {
                    if(functionName.getModuleName() == null) {
                        newReference = CanAppearWithoutContext.Function.make(Name.Function.makeUnqualified(newName.getUnqualifiedName()), reference.isChecked());
                    } else {
View Full Code Here

Examples of org.openquark.cal.compiler.SourceModel.CALDoc.CrossReference.CanAppearWithoutContext

                return null;
            }
           
            // First check to see if we need to add context to any of our references
            for (int i = 0, nReferencedNames = seeBlock.getNReferencedNames(); i < nReferencedNames; i++) {
                CanAppearWithoutContext reference = seeBlock.getNthReferencedName(i);
                if(reference instanceof CrossReference.WithoutContextCons) {
                    CrossReference.WithoutContextCons consReference = (CrossReference.WithoutContextCons)reference;
                    if(willConflictWith(moduleTypeInfo, consReference.getName(), newName, category)) {

                        // We do /not/ continue recursive processing if we discover that we need to add context to a reference.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.