Improving performace from last commit.

This commit is contained in:
Jeremiah Leary 2020-12-02 10:21:36 -06:00
parent 8d88659179
commit af9a75dc38
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class New():
lReturn = []
sBase, sSub = extract_unique_id(oToken)
try:
return self.dMap[sBase][sSub].copy()
return self.dMap[sBase][sSub]
except KeyError:
return []

View File

@ -10,6 +10,7 @@ def get_if_statement_conditions(lAllTokens, oTokenMap):
lReturn = []
lStart = oTokenMap.get_token_indexes(token.if_keyword)
lStart = lStart.copy()
lStart.extend(oTokenMap.get_token_indexes(token.elsif_keyword))
lStart.sort()