1. An electronic device implemented method comprising: accessing, using a processor, source code in a second language generated from a source model representation of a block diagram model where: the block diagram model is provided in a modeling environment for simulation of a represented dynamic system, the source model representation of the block diagram model is in a first language, the second language is distinct from the first language, the source code implements functionality specified by the block diagram model, the second language is a textual programming language, the source code includes one or more comments, and the one or more comments provide information identifying a corresponding element in the block diagram model; and generating a code generation report from the source code, the generating of the code generation report comprising: including the source code in the code generation report; parsing the one or more comments in the source code to identify the information, and replacing the information in the comment in the source code in the code generation report with a hyperlink relating to the corresponding element, the hyperlink comprising an anchor and a reference to a corresponding element in the block diagram model, the hyperlink enabling direct navigation to the corresponding element in the block diagram model from the code generation report when the hyperlink is selected.