ScriptAnalyzerResult Class

Summary

Represents a script analysis result.
Namespace
Cake.Core.Scripting.Analysis
Base Types
  • object
graph BT Type-->Base0["object"] Type["ScriptAnalyzerResult"] class Type type-node

Syntax

public sealed class ScriptAnalyzerResult

Constructors

Properties

Name Value Summary
Addins HashSet<PackageReference>
Gets the addins.
Defines ISet<string>
Gets the defines.
Errors IReadOnlyList<ScriptAnalyzerError>
Gets the list of analyzer errors.
Lines IReadOnlyList<string>
Gets the merged script lines.
Modules HashSet<PackageReference>
Gets the modules.
Namespaces ISet<string>
Gets all the namespaces.
References ISet<string>
Gets all references.
Script IScriptInformation
Gets the analyzed script.
Succeeded bool
Gets a value indicating whether to analysis succeeded without errors.
Tools HashSet<PackageReference>
Gets the tools.
UsingAliases ISet<string>
Gets the using aliases.
UsingStaticDirectives ISet<string>
Gets all types referenced with the using static directive.

Extension Methods

Name Value Summary
Dump<ScriptAnalyzerResult>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ScriptAnalyzerResult>(ScriptAnalyzerResult[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ScriptAnalyzerResult>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ScriptAnalyzerResult>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<ScriptAnalyzerResult>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ScriptAnalyzerResult>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin