Package de.halirutan.mathematica.parsing.psi.util

Examples of de.halirutan.mathematica.parsing.psi.util.GlobalDefinitionResolveProcessor


    if (referringSymbol instanceof Symbol) {
      myVariable.setReferringElement((Symbol) referringSymbol, processor.getMyLocalization(), processor.getMyLocalizationSymbol());
      return referringSymbol;
    }

    GlobalDefinitionResolveProcessor globalProcessor = new GlobalDefinitionResolveProcessor(myVariable);
    PsiTreeUtil.processElements(myVariable.getContainingFile(), globalProcessor);


    final PsiElement globalDefinition = globalProcessor.getMyReferringSymbol();
    if (globalDefinition instanceof Symbol) {
      myVariable.setReferringElement((Symbol) globalDefinition, LocalizationConstruct.ConstructType.NULL, null);
      return globalDefinition;
    }
    return null;
View Full Code Here

TOP

Related Classes of de.halirutan.mathematica.parsing.psi.util.GlobalDefinitionResolveProcessor

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.