Adding cases for app and location.
authorrtrimana <rtrimana@uci.edu>
Thu, 1 Aug 2019 01:37:10 +0000 (18:37 -0700)
committerrtrimana <rtrimana@uci.edu>
Thu, 1 Aug 2019 01:37:10 +0000 (18:37 -0700)
Extractor/ExtractorScript.py

index 6121052..c96daa7 100644 (file)
@@ -88,7 +88,15 @@ def ExtractFunctions(F, appName):
                                Temp = GetToken(F)
                        if Temp == "\"":
                                Temp = GetToken(F)
-                       if capabilityMap[variable] not in capabilityList:
+                       #print "DEBUG: %s" % variable
+                       #print capabilityMap
+                       #print eventList
+                       #if variable == "app" or variable == "location":
+                               
+                       if Temp == "app" or Temp == "location":
+                               if Temp not in eventList:
+                                       eventList.append(Temp)
+                       elif variable in capabilityMap.keys() and capabilityMap[variable] not in capabilityList:
                                # We do not repeat the same capability twice
                                capability = capabilityMap[variable]
                                capabilityList.append(capability)