public virtual VHDL.declaration.Component GetComponent() { VHDL.declaration.Component component = resolve <VHDL.declaration.Component>(currentScore); if (component != null) { return(component); } else { throw new VHDL.ParseError.vhdlUnknownComponentException(context, visitor.FileName, Identifier); } }
/// <summary> /// Creates a component specification for the other instances. /// </summary> /// <param name="component">the component</param> /// <returns>the created component specification</returns> public static ComponentSpecification createOthers(Component component) { return(new OthersComponentSpecification(component)); }
/// <summary> /// Creates a component sepecification for all instances. /// </summary> /// <param name="component">the component</param> /// <returns>the created component specification</returns> public static ComponentSpecification createAll(Component component) { return(new AllComponentSpecification(component)); }
/// <summary> /// Creates a component specification. /// </summary> /// <param name="component">the component</param> /// <param name="labels">a list of component labels</param> /// <returns>the created component specification</returns> public static ComponentSpecification create(Component component, params string[] labels) { return(new ListComponentSpecification(component, new List <string>(labels))); }
/// <summary> /// Creates a component specification. /// </summary> /// <param name="component">the component</param> /// <param name="labels">a list of component labels</param> /// <returns>created component sepecification</returns> public static ComponentSpecification create(Component component, List <string> labels) { return(new ListComponentSpecification(component, labels)); }
private ComponentSpecification(Component component) { this.component = component; }
public OthersComponentSpecification(Component component) : base(component) { }
public AllComponentSpecification(Component component) : base(component) { }
public ListComponentSpecification(Component component, List <string> labels) : base(component) { this.labels = new List <string>(labels); }