Struct moore_vhdl::add_ctx::AddContext [] [src]

pub struct AddContext<'sbc, 'lazy: 'sbc, 'sb: 'lazy, 'ast: 'sb, 'ctx: 'sb> {
    pub ctx: &'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>,
    pub scope: ScopeRef,
}

A context within which nodes can be added.

See the module documentation for details.

Fields

The outer context.

The scope to which items will be added.

Methods

impl<'sbc, 'lazy, 'sb, 'ast, 'ctx> AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Create a new context.

[src]

Create a new context with different scope.

[src]

Create a new context for describing a node.

[src]

Emit a diagnostic that a node is not implemented.

[src]

Add an optional node.

This convenience function performs a few things at a time. First it applies a closure f to the value of an option, returning an error if the closure returns one. Otherwise it wraps the result in an option and returns it.

impl<'sbc, 'lazy, 'sb, 'ast, 'ctx> AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Add a subtype indication.

[src]

Add a subtype indication already lowered to HIR.

[src]

Schedule subtype indication tasks.

impl<'sbc, 'lazy, 'sb, 'ast, 'ctx> AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Add an expression.

[src]

Add an expression already lowered to HIR.

[src]

Schedule expression tasks.

[src]

Add a list of choices.

[src]

Add a discrete range.

[src]

Add an aggregate already lowered to HIR.

[src]

Schedule aggregate tasks.

impl<'sbc, 'lazy, 'sb, 'ast, 'ctx> AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Add multiple sequential statements.

[src]

Add a sequential statement.

[src]

Add a wait statement.

[src]

Add an assert statement.

[src]

Add a report statement.

[src]

Add a sig_assign statement.

[src]

Add a var_assign statement.

[src]

Add a call statement.

[src]

Add an if statement.

[src]

Add a case statement.

[src]

Add a while loop statement.

[src]

Add a next statement.

[src]

Add a return statement.

[src]

Add a null statement.

[src]

Add a sensitivity list.

[src]

Add a label.

Immediately resolves the label name and returns the corresponding statement.

[src]

Add a target variable.

This is an target for a variable assignment.

impl<'sbc, 'lazy, 'sb, 'ast, 'ctx> AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Add a constant declaration.

[src]

Add a signal declaration.

[src]

Add a variable declaration.

[src]

Add a file declaration.

Trait Implementations

impl<'sbc, 'lazy: 'sbc, 'sb: 'lazy, 'ast: 'sb, 'ctx: 'sb> Copy for AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

impl<'sbc, 'lazy: 'sbc, 'sb: 'lazy, 'ast: 'sb, 'ctx: 'sb> Clone for AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'sbc, 'lazy, 'sb, 'ast, 'ctx> DiagEmitter for AddContext<'sbc, 'lazy, 'sb, 'ast, 'ctx>
[src]

[src]

Emit a diagnostic message.