Skip to content

Commit

Permalink
Rename globalFunctions field in output and add short label
Browse files Browse the repository at this point in the history
For now, globalFunctions = totalGlobalFunctions, and has 'tfg' as short label.

Signed-off-by: Lucas Kanashiro <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
  • Loading branch information
lucaskanashiro committed May 24, 2017
1 parent 4eb5b01 commit 764b95a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/kuniri/parser/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module Parser
'visibility': 'v',
'name': 'n',
'expression': 'e',
'level': 'l'
'level': 'l',
'totalGlobalFunctions': 'tgf'
}.freeze

# Keep the relationship between languages and project
Expand Down
2 changes: 1 addition & 1 deletion lib/kuniri/parser/xml_output_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def function_behaviour_generate(pElementName, pFunction)
end

def function_counter_generate(pNumberOfFunctions)
@outputEngine.send('globalFunctions',
@outputEngine.send('totalGlobalFunctions',
counter: pNumberOfFunctions)
end

Expand Down

0 comments on commit 764b95a

Please sign in to comment.