Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

CodeModuleInstructionAnalyzer.Analyze

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Parameters

Parameter Description
context Context object containing information necessary to perform analysis

Returns

ReportItemBuilder A ReportItemBuilder containing a partially-constructed ReportItem

Description

Implement this method to detect Issues in a code instruction, and construct a ReportItemBuilder object with basic information about a ReportItem object to describe the issue.

When Instruction Analyzers detect an issue, they should call AnalysisContext.CreateIssue to begin creating an issue with an IssueCategory, a DescriptorId and any other relevant data. The Code Module will add further information including the DependencyNode, Location and assembly name and add the resulting ReportItem to the report.