Patent ID: 8539443

Claim:
A method for analyzing code written in a loosely typed language, comprising: receiving user input entering a first portion of a script in a node in a graphical program, wherein the graphical program comprises a plurality of interconnected nodes which visually indicate functionality of the graphical program, wherein the first portion of the script is written in the loosely typed language; hierarchically determining, at edit time, properties of symbols, and data type and dimensionality of variables, in the first portion and one or more referenced files which call or are called by the first portion, wherein the script is stored in a file that is separate from the one or more referenced files, wherein said hierarchically determining comprises separately analyzing the first portion of the script and the one or more referenced files at edit time, and wherein said separately analyzing comprises: automatically inferring data type and dimensionality of one or more variables in the script or the one or more referenced files at edit time; determining one or more errors in the first portion based on said hierarchically determining, wherein said determining the one or more errors is based on the properties of symbols, and data type and dimensionality of variables, in the one or more referenced files; and displaying the one or more errors determined based on the hierarchically determined properties of symbols, and data type and dimensionality of variable, in the first portion and the one or more referenced files during edit time of the script, wherein the one or more errors are displayed on a single screen of a display device.