Class SymbolUtils


  • public class SymbolUtils
    extends Object
    • Method Detail

      • fullyQualifiedModuleName

        public static String fullyQualifiedModuleName​(String packageName,
                                                      String fileName)
      • pythonPackageName

        public static String pythonPackageName​(File file,
                                               File projectBaseDir)
      • externalModulesSymbols

        public static Map<String,​Set<Symbol>> externalModulesSymbols()
      • isTypeShedFile

        public static boolean isTypeShedFile​(PythonFile pythonFile)
      • firstParameterOffset

        public static int firstParameterOffset​(FunctionSymbol functionSymbol,
                                               boolean isStaticCall)
        Returns:
        the offset between parameter position and argument position: 0 if there is no implicit first parameter (self, cls, etc...) 1 if there is an implicit first parameter -1 if unknown (intent is not clear from context)