/[eiffelstudio]/branches/eth/eve/Src/framework/code_analysis/ca_code_analyzer.e
ViewVC logotype

Diff of /branches/eth/eve/Src/framework/code_analysis/ca_code_analyzer.e

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 94138 by zurfluhs, Fri Jan 31 13:04:58 2014 UTC revision 94149 by zurfluhs, Fri Jan 31 17:54:09 2014 UTC
# Line 65  feature {NONE} -- Initialization Line 65  feature {NONE} -- Initialization
65                          create classes_to_analyze.make                          create classes_to_analyze.make
66                          create rule_violations.make (100)                          create rule_violations.make (100)
67                          create completed_actions                          create completed_actions
68                            create output_actions
69    
70                          create ignoredby.make (25)                          create ignoredby.make (25)
71                          create library_class.make (25)                          create library_class.make (25)
# Line 80  feature -- Analysis interface Line 81  feature -- Analysis interface
81                          completed_actions.extend (a_action)                          completed_actions.extend (a_action)
82                  end                  end
83    
84            add_output_action (a_action: PROCEDURE [ANY, TUPLE [READABLE_STRING_GENERAL]])
85                    do
86                            output_actions.extend (a_action)
87                    end
88    
89          analyze          analyze
90                          -- Analyze all the classes that have been added.                          -- Analyze all the classes that have been added.
91                  require                  require
# Line 106  feature -- Analysis interface Line 112  feature -- Analysis interface
112                          end                          end
113    
114                          create l_task.make (l_rules_checker, l_rules_to_check, classes_to_analyze, agent analysis_completed)                          create l_task.make (l_rules_checker, l_rules_to_check, classes_to_analyze, agent analysis_completed)
115                            l_task.set_output_actions (output_actions)
116                          rota.run_task (l_task)                          rota.run_task (l_task)
117                  end                  end
118    
# Line 221  feature -- Analysis interface Line 228  feature -- Analysis interface
228    
229                                  extract_indexes (l_class_c)                                  extract_indexes (l_class_c)
230                          else                          else
231                                  print ("Class " + a_class.name + " not compiled (skipped).%N")                                  output_actions.call ([ca_messages.class_skipped (a_class.name)])
232                          end                          end
233                  end                  end
234    
# Line 315  feature {NONE} -- Implementation Line 322  feature {NONE} -- Implementation
322                          -- Shall the whole system be analyzed?                          -- Shall the whole system be analyzed?
323    
324          completed_actions: ACTION_SEQUENCE [TUPLE [BOOLEAN]]          completed_actions: ACTION_SEQUENCE [TUPLE [BOOLEAN]]
325                          -- List of procedure to call when analysis has completed.                          -- List of procedures to call when analysis has completed.
326    
327          frozen rota: detachable ROTA_S          frozen rota: detachable ROTA_S
328                          -- Accesses the rota service.                          -- Accesses the rota service.
# Line 336  feature {NONE} -- Implementation Line 343  feature {NONE} -- Implementation
343                                  or else (attached {CA_ERROR} a_severity and settings.are_errors_enabled.value)                                  or else (attached {CA_ERROR} a_severity and settings.are_errors_enabled.value)
344                  end                  end
345    
346            output_actions: ACTION_SEQUENCE [TUPLE [READABLE_STRING_GENERAL]]
347                            -- Will be called whenever there is a message to output.
348    
349  feature {NONE} -- Class-wide Options (From Indexing Clauses)  feature {NONE} -- Class-wide Options (From Indexing Clauses)
350    

Legend:
Removed from v.94138  
changed lines
  Added in v.94149

  ViewVC Help
Powered by ViewVC 1.1.23