public BoundSubModule(SubModuleStatementSyntax syntax, string name, BoundStatementBlock body) { Debug.Assert(!syntax.IsDefault(), "'syntax' must not be null."); Debug.Assert(!name.IsDefault(), "'name' must not be null."); Debug.Assert(!body.IsDefault(), "'body' must not be null."); this.Syntax = syntax; this.Name = name; this.Body = body; }
private protected override void VisitSubModuleStatement(SubModuleStatementSyntax node) { this.names.Add(node.NameToken.Text); }