Package org.openquark.cal.compiler.SourceIdentifier

Examples of org.openquark.cal.compiler.SourceIdentifier.Category


        // If less than 2 argument given, cant rename
        if (args.length < 2) {
            return;
        }
       
        final Category category;
       
        String oldNameString;
        QualifiedName oldName;
       
        String newNameString;
View Full Code Here


     */
    private static SourceModification makeContextifyLinkModification(ModuleTypeInfo moduleTypeInfo, String sourceText, Link.ConsNameWithoutContext segment, ModuleNameResolver.RenameMapping collateralDamageModuleRenameMapping) {
       
        CrossReference.WithoutContextCons oldReference = segment.getReference();
        Name.WithoutContextCons cons = oldReference.getName();
        Category consCategory = getCategory(moduleTypeInfo, cons);
       
        CALDoc.TextSegment.InlineTag.Link newSegment;
        if(consCategory == Category.TOP_LEVEL_FUNCTION_OR_CLASS_METHOD ||
           consCategory == Category.LOCAL_VARIABLE ||
           consCategory == Category.LOCAL_VARIABLE_DEFINITION) {
View Full Code Here

       
        if(!unqualifiedName.equals(qualifiedName.getUnqualifiedName())) {
            return false;
        }
       
        Category nameCategory;
        if(name instanceof Name.Function) {
            nameCategory = Category.TOP_LEVEL_FUNCTION_OR_CLASS_METHOD;
       
        } else if(name instanceof Name.DataCons) {
            nameCategory = Category.DATA_CONSTRUCTOR;
View Full Code Here

               
                CanAppearWithoutContext.WithoutContextCons consReference = (CanAppearWithoutContext.WithoutContextCons)reference;
                Name.WithoutContextCons name = consReference.getName();
               
                if(willConflictWith(moduleTypeInfo, name, newName, category)) {
                    Category consCategory = getCategory(moduleTypeInfo, name);
                    See newSee;
                   
                    if(consCategory == Category.MODULE_NAME) {
                        newSee = See.Module.make(new CrossReference.Module[] {
                                CrossReference.Module.make(Name.Module.make(collateralDamageModuleRenameMapping.getNewNameForModule(ModuleName.make(name.toSourceText()))), consReference.isChecked())
View Full Code Here

                // Indicate to our CrossReference parent that this name needs context
                return Boolean.TRUE;
            }
           
            // Not interested in wrong category or wrong unqualified name
            Category consCategory = getCategory(moduleTypeInfo, cons);
           
            if (consCategory == category) {
               
                if (category == Category.MODULE_NAME) {
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.SourceIdentifier.Category

Copyright © 2018 www.massapicom. 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.