Skip to main content

AnalyzerError

Enum AnalyzerError 

Source
pub enum AnalyzerError {
Show 95 variants AmbiguousElsif { cause: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, AnonymousIdentifierUsage { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, CallNonFunction { identifier: String, kind: String, input: MultiSources, error_location: SourceSpan, inst_context: Vec<SourceSpan>, token_source: TokenSource, }, CyclicTypeDependency { start: String, end: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, DuplicatedIdentifier { identifier: String, kind: DuplicatedIdentifierKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, ExceedLimit { kind: ExceedLimitKind, value: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, FixedTypeWithSignedModifier { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, IncludeFailure { name: String, cause: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, IncompatProto { identifier: String, proto: String, cause: IncompatProtoKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InfiniteRecursion { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidAssignment { identifier: String, kind: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidCast { from: String, to: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidClock { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidClockDomain { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidConnectOperand { identifier: String, reason: InvalidConnectOperandKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidDirection { kind: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidEmbed { way: String, lang: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidEmbedIdentifier { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidEnumVariant { identifier: String, encoding: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidFactor { identifier: Option<String>, kind: String, input: MultiSources, error_location: SourceSpan, inst_context: Vec<SourceSpan>, token_source: TokenSource, }, InvalidIdentifier { identifier: String, rule: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidImport { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidLogicalOperand { kind: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnsignedArithShift { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidLsb { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidModifier { kind: String, reason: InvalidModifierKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidModportItem { kind: InvalidModportItemKind, identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidMsb { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidNumberCharacter { cause: char, kind: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidOperand { kind: String, op: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidPortDefaultValue { kind: InvalidPortDefaultValueKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidReset { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidSelect { kind: InvalidSelectKind, input: MultiSources, error_location: SourceSpan, inst_context: Vec<SourceSpan>, token_source: TokenSource, }, InvalidStatement { kind: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidTest { cause: InvalidTestKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidTbUsage { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingTbPort { name: String, port: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownTbPort { name: String, port: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidTypeDeclaration { kind: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvisibleIndentifier { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, LastItemWithDefine { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MemberAccessOnArray { name: String, member: String, array_dims: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MismatchAssignment { src: String, dst: String, input: MultiSources, error_location: SourceSpan, inst_context: Vec<SourceSpan>, token_source: TokenSource, }, NonPositiveValue { value: String, typ: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MismatchAttributeArgs { name: String, expected: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MismatchClockDomain { clock_domain: String, other_domain: String, input: MultiSources, error_location: SourceSpan, other_location: SourceSpan, token_source: TokenSource, }, MismatchFunctionArg { name: String, src: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MismatchFunctionArity { name: String, arity: usize, args: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MismatchGenericsArity { name: String, arity: usize, args: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MismatchType { kind: MismatchTypeKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingClockDomain { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingClockSignal { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingDefaultArgument { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, GenericInferenceFailed { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, TypeInferenceNotSupported { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, TypeInferenceConflict { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingIfReset { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingPort { name: String, port: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingResetSignal { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MissingResetStatement { name: String, input: MultiSources, error_locations: Vec<SourceSpan>, token_source: TokenSource, }, MissingTri { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MixedFunctionArgument { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MixedStructUnionMember { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, MultipleAssignment { identifier: String, input: MultiSources, error_locations: Vec<SourceSpan>, token_source: TokenSource, }, MultipleDefault { kind: MultipleDefaultKind, identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, PrivateMember { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, PrivateNamespace { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, ReferringBeforeDefinition { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, ReservedIdentifier { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, SvKeywordUsage { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, SvWithImplicitReset { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, TooLargeEnumVariant { identifier: String, value: isize, width: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, TooLargeNumber { width: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, TooMuchEnumVariant { identifier: String, number: usize, width: usize, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnassignVariable { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnassignableOutput { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UncoveredBranch { identifier: String, input: MultiSources, error_locations: Vec<SourceSpan>, token_source: TokenSource, }, UndefinedIdentifier { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnenclosedInnerIfExpression { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnevaluableValue { kind: UnevaluableValueKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnexpandableModport { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownAttribute { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownEmbedLang { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownEmbedWay { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownIncludeWay { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownMember { name: String, member: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownMsb { input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownParam { name: String, param: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownPort { name: String, port: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnknownUnsafe { name: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnresolvableGenericExpression { identifier: String, input: MultiSources, error_location: SourceSpan, definition_location: SourceSpan, token_source: TokenSource, }, UnusedReturn { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, UnusedVariable { identifier: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, WrongSeparator { separator: String, valid_separator: String, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, }, InvalidWavedrom { cause: InvalidWavedromKind, input: MultiSources, error_location: SourceSpan, token_source: TokenSource, },
}

Variants§

§

AmbiguousElsif

Fields

§cause: String
§error_location: SourceSpan
§token_source: TokenSource
§

AnonymousIdentifierUsage

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

CallNonFunction

Fields

§identifier: String
§kind: String
§error_location: SourceSpan
§inst_context: Vec<SourceSpan>
§token_source: TokenSource
§

CyclicTypeDependency

Fields

§start: String
§error_location: SourceSpan
§token_source: TokenSource
§

DuplicatedIdentifier

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

ExceedLimit

Fields

§value: usize
§error_location: SourceSpan
§token_source: TokenSource
§

FixedTypeWithSignedModifier

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

IncludeFailure

Fields

§name: String
§cause: String
§error_location: SourceSpan
§token_source: TokenSource
§

IncompatProto

Fields

§identifier: String
§proto: String
§error_location: SourceSpan
§token_source: TokenSource
§

InfiniteRecursion

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidAssignment

Fields

§identifier: String
§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidCast

Fields

§from: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidClock

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidClockDomain

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidConnectOperand

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidDirection

Fields

§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidEmbed

Fields

§lang: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidEmbedIdentifier

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidEnumVariant

Fields

§identifier: String
§encoding: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidFactor

Fields

§identifier: Option<String>
§kind: String
§error_location: SourceSpan
§inst_context: Vec<SourceSpan>
§token_source: TokenSource
§

InvalidIdentifier

Fields

§identifier: String
§rule: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidImport

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidLogicalOperand

Fields

§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnsignedArithShift

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidLsb

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidModifier

Fields

§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidModportItem

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidMsb

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidNumberCharacter

Fields

§cause: char
§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidOperand

Fields

§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidPortDefaultValue

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidReset

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidSelect

Fields

§error_location: SourceSpan
§inst_context: Vec<SourceSpan>
§token_source: TokenSource
§

InvalidStatement

Fields

§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidTest

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

InvalidTbUsage

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MissingTbPort

Fields

§name: String
§port: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownTbPort

Fields

§name: String
§port: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidTypeDeclaration

Fields

§kind: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvisibleIndentifier

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

LastItemWithDefine

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MemberAccessOnArray

Fields

§name: String
§member: String
§array_dims: usize
§error_location: SourceSpan
§token_source: TokenSource
§

MismatchAssignment

Fields

§error_location: SourceSpan
§inst_context: Vec<SourceSpan>
§token_source: TokenSource
§

NonPositiveValue

Fields

§value: String
§error_location: SourceSpan
§token_source: TokenSource
§

MismatchAttributeArgs

Fields

§name: String
§expected: String
§error_location: SourceSpan
§token_source: TokenSource
§

MismatchClockDomain

Fields

§clock_domain: String
§other_domain: String
§error_location: SourceSpan
§other_location: SourceSpan
§token_source: TokenSource
§

MismatchFunctionArg

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

MismatchFunctionArity

Fields

§name: String
§arity: usize
§args: usize
§error_location: SourceSpan
§token_source: TokenSource
§

MismatchGenericsArity

Fields

§name: String
§arity: usize
§args: usize
§error_location: SourceSpan
§token_source: TokenSource
§

MismatchType

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MissingClockDomain

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MissingClockSignal

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MissingDefaultArgument

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

GenericInferenceFailed

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

TypeInferenceNotSupported

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

TypeInferenceConflict

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

MissingIfReset

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MissingPort

Fields

§name: String
§port: String
§error_location: SourceSpan
§token_source: TokenSource
§

MissingResetSignal

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MissingResetStatement

Fields

§name: String
§error_locations: Vec<SourceSpan>
§token_source: TokenSource
§

MissingTri

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MixedFunctionArgument

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MixedStructUnionMember

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

MultipleAssignment

Fields

§identifier: String
§error_locations: Vec<SourceSpan>
§token_source: TokenSource
§

MultipleDefault

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

PrivateMember

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

PrivateNamespace

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

ReferringBeforeDefinition

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

ReservedIdentifier

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

SvKeywordUsage

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

SvWithImplicitReset

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

TooLargeEnumVariant

Fields

§identifier: String
§value: isize
§width: usize
§error_location: SourceSpan
§token_source: TokenSource
§

TooLargeNumber

Fields

§width: usize
§error_location: SourceSpan
§token_source: TokenSource
§

TooMuchEnumVariant

Fields

§identifier: String
§number: usize
§width: usize
§error_location: SourceSpan
§token_source: TokenSource
§

UnassignVariable

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnassignableOutput

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

UncoveredBranch

Fields

§identifier: String
§error_locations: Vec<SourceSpan>
§token_source: TokenSource
§

UndefinedIdentifier

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnenclosedInnerIfExpression

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

UnevaluableValue

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

UnexpandableModport

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownAttribute

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownEmbedLang

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownEmbedWay

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownIncludeWay

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownMember

Fields

§name: String
§member: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownMsb

Fields

§error_location: SourceSpan
§token_source: TokenSource
§

UnknownParam

Fields

§name: String
§param: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownPort

Fields

§name: String
§port: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnknownUnsafe

Fields

§name: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnresolvableGenericExpression

Fields

§identifier: String
§error_location: SourceSpan
§definition_location: SourceSpan
§token_source: TokenSource
§

UnusedReturn

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

UnusedVariable

Fields

§identifier: String
§error_location: SourceSpan
§token_source: TokenSource
§

WrongSeparator

Fields

§separator: String
§valid_separator: String
§error_location: SourceSpan
§token_source: TokenSource
§

InvalidWavedrom

Fields

§error_location: SourceSpan
§token_source: TokenSource

Implementations§

Source§

impl AnalyzerError

Source

pub fn is_error(&self) -> bool

Source

pub fn token_source(&self) -> TokenSource

Source

pub fn ambiguous_elsif(cause: &str, token: &TokenRange) -> Self

Source

pub fn anonymous_identifier_usage(token: &TokenRange) -> Self

Source

pub fn call_non_function( identifier: &str, kind: &str, token: &TokenRange, ) -> Self

Source

pub fn cyclic_type_dependency( start: &str, end: &str, token: &TokenRange, ) -> Self

Source

pub fn duplicated_identifier( identifier: &str, kind: DuplicatedIdentifierKind, token: &TokenRange, ) -> Self

Source

pub fn exceed_limit( kind: ExceedLimitKind, value: usize, token: &TokenRange, ) -> Self

Source

pub fn fixed_type_with_signed_modifier(token: &TokenRange) -> Self

Source

pub fn include_failure(name: &str, cause: &str, token: &TokenRange) -> Self

Source

pub fn incompat_proto( identifier: &str, proto: &str, cause: IncompatProtoKind, token: &TokenRange, ) -> Self

Source

pub fn infinite_recursion(token: &TokenRange) -> Self

Source

pub fn invalid_assignment( identifier: &str, kind: &str, token: &TokenRange, ) -> Self

Source

pub fn invalid_cast(from: &str, to: &str, token: &TokenRange) -> Self

Source

pub fn invalid_clock(identifier: &str, token: &TokenRange) -> Self

Source

pub fn invalid_clock_domain(token: &TokenRange) -> Self

Source

pub fn invalid_connect_operand( identifier: &str, reason: InvalidConnectOperandKind, token: &TokenRange, ) -> Self

Source

pub fn invalid_direction(kind: &str, token: &TokenRange) -> Self

Source

pub fn invalid_embed(way: &str, lang: &str, token: &TokenRange) -> Self

Source

pub fn invalid_embed_identifier(token: &TokenRange) -> Self

Source

pub fn invalid_enum_variant( identifier: &str, encoding: &str, token: &TokenRange, ) -> Self

Source

pub fn invalid_factor( identifier: Option<&str>, kind: &str, token: &TokenRange, inst_context: &[TokenRange], ) -> Self

Source

pub fn invalid_identifier( identifier: &str, rule: &str, token: &TokenRange, ) -> Self

Source

pub fn invalid_import(token: &TokenRange) -> Self

Source

pub fn invalid_logical_operand(op: bool, token: &TokenRange) -> Self

Source

pub fn unsigned_arith_shift(token: &TokenRange) -> Self

Source

pub fn invalid_lsb(token: &TokenRange) -> Self

Source

pub fn invalid_modifier( kind: &str, reason: InvalidModifierKind, token: &TokenRange, ) -> Self

Source

pub fn invalid_modport_item( kind: InvalidModportItemKind, identifier: &str, token: &TokenRange, ) -> Self

Source

pub fn invalid_msb(token: &TokenRange) -> Self

Source

pub fn invalid_number_character( cause: char, kind: &str, token: &TokenRange, ) -> Self

Source

pub fn invalid_operand(kind: &str, op: &str, token: &TokenRange) -> Self

Source

pub fn invalid_port_default_value( kind: InvalidPortDefaultValueKind, token: &TokenRange, ) -> Self

Source

pub fn invalid_reset(identifier: &str, token: &TokenRange) -> Self

Source

pub fn invalid_select( kind: &InvalidSelectKind, token: &TokenRange, inst_context: &[TokenRange], ) -> Self

Source

pub fn invalid_statement(kind: &str, token: &TokenRange) -> Self

Source

pub fn invalid_test(cause: InvalidTestKind, token: &TokenRange) -> Self

Source

pub fn invalid_tb_usage(token: &TokenRange) -> Self

Source

pub fn missing_tb_port(name: &str, port: &str, token: &TokenRange) -> Self

Source

pub fn unknown_tb_port(name: &str, port: &str, token: &TokenRange) -> Self

Source

pub fn invalid_type_declaration(kind: &str, token: &TokenRange) -> Self

Source

pub fn invisible_identifier(identifier: &str, token: &TokenRange) -> Self

Source

pub fn last_item_with_define(token: &TokenRange) -> Self

Source

pub fn member_access_on_array( name: &str, member: &str, array_dims: usize, token: &TokenRange, ) -> Self

Source

pub fn mismatch_assignment( src: &str, dst: &str, token: &TokenRange, inst_context: &[TokenRange], ) -> Self

Source

pub fn non_positive_value(value: &str, typ: &str, token: &TokenRange) -> Self

Source

pub fn mismatch_attribute_args( name: &str, expected: String, token: &TokenRange, ) -> Self

Source

pub fn mismatch_clock_domain( clock_domain: &str, other_domain: &str, token: &TokenRange, other_token: &TokenRange, ) -> Self

Source

pub fn mismatch_function_arg(name: &str, src: &str, token: &TokenRange) -> Self

Source

pub fn mismatch_function_arity( name: &str, arity: usize, args: usize, token: &TokenRange, ) -> Self

Source

pub fn mismatch_generics_arity( name: &str, arity: usize, args: usize, token: &TokenRange, ) -> Self

Source

pub fn mismatch_type(kind: MismatchTypeKind, token: &TokenRange) -> Self

Source

pub fn missing_clock_domain(token: &TokenRange) -> Self

Source

pub fn missing_clock_signal(token: &TokenRange) -> Self

Source

pub fn missing_default_argument(identifier: &str, token: &TokenRange) -> Self

Source

pub fn generic_inference_failed(identifier: &str, token: &TokenRange) -> Self

Source

pub fn type_inference_conflict(identifier: &str, token: &TokenRange) -> Self

Source

pub fn type_inference_not_supported(token: &TokenRange) -> Self

Source

pub fn missing_if_reset(token: &TokenRange) -> Self

Source

pub fn missing_port(name: &str, port: &str, token: &TokenRange) -> Self

Source

pub fn missing_reset_signal(token: &TokenRange) -> Self

Source

pub fn missing_reset_statement( name: &str, token: &TokenRange, tokens: &[TokenRange], ) -> Self

Source

pub fn missing_tri(token: &TokenRange) -> Self

Source

pub fn mixed_function_argument(token: &TokenRange) -> Self

Source

pub fn mixed_struct_union_member(token: &TokenRange) -> Self

Source

pub fn multiple_assignment( identifier: &str, token: &TokenRange, assigned: &[TokenRange], ) -> Self

Source

pub fn multiple_default( kind: MultipleDefaultKind, identifier: &str, token: &TokenRange, ) -> Self

Source

pub fn private_member(name: &str, token: &TokenRange) -> Self

Source

pub fn private_namespace(name: &str, token: &TokenRange) -> Self

Source

pub fn referring_before_definition(identifier: &str, token: &TokenRange) -> Self

Source

pub fn reserved_identifier(identifier: &str, token: &TokenRange) -> Self

Source

pub fn sv_keyword_usage(identifier: &str, token: &TokenRange) -> Self

Source

pub fn sv_with_implicit_reset(token: &TokenRange) -> Self

Source

pub fn too_large_enum_variant( identifier: &str, value: isize, width: usize, token: &TokenRange, ) -> Self

Source

pub fn too_large_number(width: usize, token: &TokenRange) -> Self

Source

pub fn too_much_enum_variant( identifier: &str, number: usize, width: usize, token: &TokenRange, ) -> Self

Source

pub fn unassign_variable(identifier: &str, token: &TokenRange) -> Self

Source

pub fn unassignable_output(token: &TokenRange) -> Self

Source

pub fn uncovered_branch( identifier: &str, token: &TokenRange, covered: &[TokenRange], ) -> Self

Source

pub fn undefined_identifier(identifier: &str, token: &TokenRange) -> Self

Source

pub fn unenclosed_inner_if_expression(token: &TokenRange) -> Self

Source

pub fn unevaluable_value(kind: UnevaluableValueKind, token: &TokenRange) -> Self

Source

pub fn unexpandable_modport(identifier: &str, token: &TokenRange) -> Self

Source

pub fn unknown_attribute(name: &str, token: &TokenRange) -> Self

Source

pub fn unknown_embed_lang(name: &str, token: &TokenRange) -> Self

Source

pub fn unknown_embed_way(name: &str, token: &TokenRange) -> Self

Source

pub fn unknown_include_way(name: &str, token: &TokenRange) -> Self

Source

pub fn unknown_member(name: &str, member: &str, token: &TokenRange) -> Self

Source

pub fn unknown_msb(token: &TokenRange) -> Self

Source

pub fn unknown_param(name: &str, param: &str, token: &TokenRange) -> Self

Source

pub fn unknown_port(name: &str, port: &str, token: &TokenRange) -> Self

Source

pub fn unknown_unsafe(name: &str, token: &TokenRange) -> Self

Source

pub fn unresolvable_generic_expression( identifier: &str, token: &TokenRange, definition_token: &TokenRange, ) -> Self

Source

pub fn unused_return(identifier: &str, token: &TokenRange) -> Self

Source

pub fn unused_variable(identifier: &str, token: &TokenRange) -> Self

Source

pub fn invalid_wavedrom(cause: InvalidWavedromKind, token: &TokenRange) -> Self

Source

pub fn wrong_seperator(separator: &str, token: &TokenRange) -> Self

Trait Implementations§

Source§

impl Debug for AnalyzerError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Diagnostic for AnalyzerError

Source§

fn code(&self) -> Option<Box<dyn Display + '_>>

Unique diagnostic code that can be used to look up more information about this Diagnostic. Ideally also globally unique, and documented in the toplevel crate’s documentation for easy searching. Rust path format (foo::bar::baz) is recommended, but more classic codes like E0123 or enums will work just fine.
Source§

fn help(&self) -> Option<Box<dyn Display + '_>>

Additional help text related to this Diagnostic. Do you have any advice for the poor soul who’s just run into this issue?
Source§

fn severity(&self) -> Option<Severity>

Diagnostic severity. This may be used by ReportHandlers to change the display format of this diagnostic. Read more
Source§

fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>

Labels to apply to this Diagnostic’s Diagnostic::source_code
Source§

fn source_code(&self) -> Option<&dyn SourceCode>

Source code to apply this Diagnostic’s Diagnostic::labels to.
Source§

fn url(&self) -> Option<Box<dyn Display + '_>>

URL to visit for a more detailed explanation/help about this Diagnostic.
Source§

fn related<'a>( &'a self, ) -> Option<Box<dyn Iterator<Item = &'a dyn Diagnostic> + 'a>>

Additional related Diagnostics.
Source§

fn diagnostic_source(&self) -> Option<&dyn Diagnostic>

The cause of the error.
Source§

impl Display for AnalyzerError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for AnalyzerError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DagError> for AnalyzerError

Source§

fn from(value: DagError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for AnalyzerError

Source§

fn eq(&self, other: &AnalyzerError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for AnalyzerError

Source§

impl StructuralPartialEq for AnalyzerError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.