Debian Codegraph @

gcc/d/dmd/statement.h

raw
1
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2025 by The D Language Foundation, All Rights Reserved
4 * written by Walter Bright
5 * https://www.digitalmars.com
6 * Distributed under the Boost Software License, Version 1.0.
7 * https://www.boost.org/LICENSE_1_0.txt
8 * https://github.com/dlang/dmd/blob/master/src/dmd/statement.h
9 */
10
11 #pragma once
12
13 #include "arraytypes.h"
14 #include "ast_node.h"
15 #include "dsymbol.h"
16 #include "visitor.h"
17 #include "tokens.h"
18
19 struct Scope;
20 class Expression;
21 class LabelDsymbol;
22 class Identifier;
23 class IfStatement;
24 class ExpStatement;
25 class DefaultStatement;
26 class VarDeclaration;
27 class Condition;
28 class ErrorStatement;
29 class ReturnStatement;
30 class CompoundStatement;
31 class Parameter;
32 class StaticAssert;
33 class AsmStatement;
34 class GotoStatement;
35 class ScopeStatement;
36 class TryCatchStatement;
37 class TryFinallyStatement;
38 class CaseStatement;
39 class DefaultStatement;
40 class LabelStatement;
41 class StaticForeach;
42
43 // Back end
44 struct code;
45
46 /* How a statement exits; this is returned by blockExit()
47 */
48 enum BE : int32_t
49 {
50 BEnone = 0,
51 BEfallthru = 1,
52 BEthrow = 2,
53 BEreturn = 4,
54 BEgoto = 8,
55 BEhalt = 0x10,
56 BEbreak = 0x20,
57 BEcontinue = 0x40,
58 BEerrthrow = 0x80,
59 BEany = (BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt)
60 };
61
62 typedef unsigned char STMT;
63 enum
64 {
65 STMTerror,
66 STMTpeel,
67 STMTexp, STMTdtorExp,
68 STMTmixin,
69 STMTcompound, STMTcompoundDeclaration, STMTcompoundAsm,
70 STMTunrolledLoop,
71 STMTscope,
72 STMTforwarding,
73 STMTwhile,
74 STMTdo,
75 STMTfor,
76 STMTforeach,
77 STMTforeachRange,
78 STMTif,
79 STMTconditional,
80 STMTstaticForeach,
81 STMTpragma,
82 STMTstaticAssert,
83 STMTswitch,
84 STMTcase,
85 STMTcaseRange,
86 STMTdefault,
87 STMTgotoDefault,
88 STMTgotoCase,
89 STMTswitchError,
90 STMTreturn,
91 STMTbreak,
92 STMTcontinue,
93 STMTsynchronized,
94 STMTwith,
95 STMTtryCatch,
96 STMTtryFinally,
97 STMTscopeGuard,
98 STMTthrow,
99 STMTdebug,
100 STMTgoto,
101 STMTlabel,
102 STMTasm, STMTinlineAsm, STMTgccAsm,
103 STMTimport
104 };
105
106 class Statement : public ASTNode
107 {
108 public:
109 Loc loc;
110 STMT stmt;
111
112 DYNCAST dyncast() const override final { return DYNCAST_STATEMENT; }
113
114 virtual Statement *syntaxCopy();
115
116 virtual Statement *getRelatedLabeled() { return this; }
117 virtual bool hasBreak() const;
118 virtual bool hasContinue() const;
119 bool hasCode();
120 virtual Statement *last();
121
122 virtual ReturnStatement *endsWithReturnStatement() { return nullptr; }
123
124 ErrorStatement *isErrorStatement() { return stmt == STMTerror ? (ErrorStatement*)this : nullptr; }
125 ScopeStatement *isScopeStatement() { return stmt == STMTscope ? (ScopeStatement*)this : nullptr; }
126 ExpStatement *isExpStatement() { return stmt == STMTexp ? (ExpStatement*)this : nullptr; }
127 CompoundStatement *isCompoundStatement() { return stmt == STMTcompound ? (CompoundStatement*)this : nullptr; }
128 ReturnStatement *isReturnStatement() { return stmt == STMTreturn ? (ReturnStatement*)this : nullptr; }
129 IfStatement *isIfStatement() { return stmt == STMTif ? (IfStatement*)this : nullptr; }
130 ConditionalStatement *isConditionalStatement() { return stmt == STMTconditional ? (ConditionalStatement*)this : nullptr; }
131 StaticForeachStatement *isStaticForeachStatement() { return stmt == STMTstaticForeach ? (StaticForeachStatement*)this : nullptr; }
132 CaseStatement *isCaseStatement() { return stmt == STMTcase ? (CaseStatement*)this : nullptr; }
133 DefaultStatement *isDefaultStatement() { return stmt == STMTdefault ? (DefaultStatement*)this : nullptr; }
134 LabelStatement *isLabelStatement() { return stmt == STMTlabel ? (LabelStatement*)this : nullptr; }
135 GotoDefaultStatement *isGotoDefaultStatement() { return stmt == STMTgotoDefault ? (GotoDefaultStatement*)this : nullptr; }
136 GotoCaseStatement *isGotoCaseStatement() { return stmt == STMTgotoCase ? (GotoCaseStatement*)this : nullptr; }
137 BreakStatement *isBreakStatement() { return stmt == STMTbreak ? (BreakStatement*)this : nullptr; }
138 DtorExpStatement *isDtorExpStatement() { return stmt == STMTdtorExp ? (DtorExpStatement*)this : nullptr; }
139 MixinStatement *isMixinStatement() { return stmt == STMTmixin ? (MixinStatement*)this : nullptr; }
140 ForwardingStatement *isForwardingStatement() { return stmt == STMTforwarding ? (ForwardingStatement*)this : nullptr; }
141 DoStatement *isDoStatement() { return stmt == STMTdo ? (DoStatement*)this : nullptr; }
142 ForStatement *isForStatement() { return stmt == STMTfor ? (ForStatement*)this : nullptr; }
143 ForeachStatement *isForeachStatement() { return stmt == STMTforeach ? (ForeachStatement*)this : nullptr; }
144 SwitchStatement *isSwitchStatement() { return stmt == STMTswitch ? (SwitchStatement*)this : nullptr; }
145 ContinueStatement *isContinueStatement() { return stmt == STMTcontinue ? (ContinueStatement*)this : nullptr; }
146 WithStatement *isWithStatement() { return stmt == STMTwith ? (WithStatement*)this : nullptr; }
147 TryCatchStatement *isTryCatchStatement() { return stmt == STMTtryCatch ? (TryCatchStatement*)this : nullptr; }
148 ThrowStatement *isThrowStatement() { return stmt == STMTthrow ? (ThrowStatement*)this : nullptr; }
149 DebugStatement *isDebugStatement() { return stmt == STMTdebug ? (DebugStatement*)this : nullptr; }
150 TryFinallyStatement *isTryFinallyStatement() { return stmt == STMTtryFinally ? (TryFinallyStatement*)this : nullptr; }
151 ScopeGuardStatement *isScopeGuardStatement() { return stmt == STMTscopeGuard ? (ScopeGuardStatement*)this : nullptr; }
152 SwitchErrorStatement *isSwitchErrorStatement() { return stmt == STMTswitchError ? (SwitchErrorStatement*)this : nullptr; }
153 UnrolledLoopStatement *isUnrolledLoopStatement() { return stmt == STMTunrolledLoop ? (UnrolledLoopStatement*)this : nullptr; }
154 ForeachRangeStatement *isForeachRangeStatement() { return stmt == STMTforeachRange ? (ForeachRangeStatement*)this : nullptr; }
155 CompoundDeclarationStatement *isCompoundDeclarationStatement() { return stmt == STMTcompoundDeclaration ? (CompoundDeclarationStatement*)this : nullptr; }
156
157 void accept(Visitor *v) override { v->visit(this); }
158 };
159
160 /** Any Statement that fails semantic() or has a component that is an ErrorExp or
161 * a TypeError should return an ErrorStatement from semantic().
162 */
163 class ErrorStatement final : public Statement
164 {
165 public:
166 ErrorStatement *syntaxCopy() override;
167
168 void accept(Visitor *v) override { v->visit(this); }
169 };
170
171 class PeelStatement final : public Statement
172 {
173 public:
174 Statement *s;
175
176 void accept(Visitor *v) override { v->visit(this); }
177 };
178
179 class ExpStatement : public Statement
180 {
181 public:
182 Expression *exp;
183
184 static ExpStatement *create(Loc loc, Expression *exp);
185 ExpStatement *syntaxCopy() override;
186
187 void accept(Visitor *v) override { v->visit(this); }
188 };
189
190 class DtorExpStatement final : public ExpStatement
191 {
192 public:
193 /* Wraps an expression that is the destruction of 'var'
194 */
195
196 VarDeclaration *var;
197
198 DtorExpStatement *syntaxCopy() override;
199 void accept(Visitor *v) override { v->visit(this); }
200 };
201
202 class MixinStatement final : public Statement
203 {
204 public:
205 Expressions *exps;
206
207 MixinStatement *syntaxCopy() override;
208 void accept(Visitor *v) override { v->visit(this); }
209 };
210
211 class CompoundStatement : public Statement
212 {
213 public:
214 Statements *statements;
215
216 static CompoundStatement *create(Loc loc, Statement *s1, Statement *s2);
217 CompoundStatement *syntaxCopy() override;
218 ReturnStatement *endsWithReturnStatement() override final;
219 Statement *last() override final;
220
221 void accept(Visitor *v) override { v->visit(this); }
222 };
223
224 class CompoundDeclarationStatement final : public CompoundStatement
225 {
226 public:
227 CompoundDeclarationStatement *syntaxCopy() override;
228 void accept(Visitor *v) override { v->visit(this); }
229 };
230
231 /* The purpose of this is so that continue will go to the next
232 * of the statements, and break will go to the end of the statements.
233 */
234 class UnrolledLoopStatement final : public Statement
235 {
236 public:
237 Statements *statements;
238
239 UnrolledLoopStatement *syntaxCopy() override;
240 bool hasBreak() const override;
241 bool hasContinue() const override;
242
243 void accept(Visitor *v) override { v->visit(this); }
244 };
245
246 class ScopeStatement final : public Statement
247 {
248 public:
249 Statement *statement;
250 Loc endloc; // location of closing curly bracket
251
252 ScopeStatement *syntaxCopy() override;
253 ReturnStatement *endsWithReturnStatement() override;
254 bool hasBreak() const override;
255 bool hasContinue() const override;
256
257 void accept(Visitor *v) override { v->visit(this); }
258 };
259
260 class ForwardingStatement final : public Statement
261 {
262 public:
263 ForwardingScopeDsymbol *sym;
264 Statement *statement;
265
266 ForwardingStatement *syntaxCopy() override;
267 void accept(Visitor *v) override { v->visit(this); }
268 };
269
270 class WhileStatement final : public Statement
271 {
272 public:
273 Parameter *param;
274 Expression *condition;
275 Statement *_body;
276 Loc endloc; // location of closing curly bracket
277
278 WhileStatement *syntaxCopy() override;
279 bool hasBreak() const override;
280 bool hasContinue() const override;
281
282 void accept(Visitor *v) override { v->visit(this); }
283 };
284
285 class DoStatement final : public Statement
286 {
287 public:
288 Statement *_body;
289 Expression *condition;
290 Loc endloc; // location of ';' after while
291
292 DoStatement *syntaxCopy() override;
293 bool hasBreak() const override;
294 bool hasContinue() const override;
295
296 void accept(Visitor *v) override { v->visit(this); }
297 };
298
299 class ForStatement final : public Statement
300 {
301 public:
302 Statement *_init;
303 Expression *condition;
304 Expression *increment;
305 Statement *_body;
306 Loc endloc; // location of closing curly bracket
307
308 // When wrapped in try/finally clauses, this points to the outermost one,
309 // which may have an associated label. Internal break/continue statements
310 // treat that label as referring to this loop.
311 Statement *relatedLabeled;
312
313 ForStatement *syntaxCopy() override;
314 Statement *getRelatedLabeled() override { return relatedLabeled ? relatedLabeled : this; }
315 bool hasBreak() const override;
316 bool hasContinue() const override;
317
318 void accept(Visitor *v) override { v->visit(this); }
319 };
320
321 class ForeachStatement final : public Statement
322 {
323 public:
324 TOK op; // TOKforeach or TOKforeach_reverse
325 Parameters *parameters; // array of Parameter*'s
326 Expression *aggr;
327 Statement *_body;
328 Loc endloc; // location of closing curly bracket
329
330 VarDeclaration *key;
331 VarDeclaration *value;
332
333 FuncDeclaration *func; // function we're lexically in
334
335 Statements *cases; // put breaks, continues, gotos and returns here
336 ScopeStatements *gotos; // forward referenced goto's go here
337
338 ForeachStatement *syntaxCopy() override;
339 bool hasBreak() const override;
340 bool hasContinue() const override;
341
342 void accept(Visitor *v) override { v->visit(this); }
343 };
344
345 class ForeachRangeStatement final : public Statement
346 {
347 public:
348 TOK op; // TOKforeach or TOKforeach_reverse
349 Parameter *param; // loop index variable
350 Expression *lwr;
351 Expression *upr;
352 Statement *_body;
353 Loc endloc; // location of closing curly bracket
354
355 VarDeclaration *key;
356
357 ForeachRangeStatement *syntaxCopy() override;
358 bool hasBreak() const override;
359 bool hasContinue() const override;
360
361 void accept(Visitor *v) override { v->visit(this); }
362 };
363
364 class IfStatement final : public Statement
365 {
366 public:
367 Parameter *param;
368 Expression *condition;
369 Statement *ifbody;
370 Statement *elsebody;
371 VarDeclaration *match; // for MatchExpression results
372 Loc endloc; // location of closing curly bracket
373
374 IfStatement *syntaxCopy() override;
375
376 void accept(Visitor *v) override { v->visit(this); }
377 bool isIfCtfeBlock();
378 };
379
380 class ConditionalStatement final : public Statement
381 {
382 public:
383 Condition *condition;
384 Statement *ifbody;
385 Statement *elsebody;
386
387 ConditionalStatement *syntaxCopy() override;
388
389 void accept(Visitor *v) override { v->visit(this); }
390 };
391
392 class StaticForeachStatement final : public Statement
393 {
394 public:
395 StaticForeach *sfe;
396
397 StaticForeachStatement *syntaxCopy() override;
398
399 void accept(Visitor *v) override { v->visit(this); }
400 };
401
402 class PragmaStatement final : public Statement
403 {
404 public:
405 Identifier *ident;
406 Expressions *args; // array of Expression's
407 Statement *_body;
408
409 PragmaStatement *syntaxCopy() override;
410
411 void accept(Visitor *v) override { v->visit(this); }
412 };
413
414 class StaticAssertStatement final : public Statement
415 {
416 public:
417 StaticAssert *sa;
418
419 StaticAssertStatement *syntaxCopy() override;
420
421 void accept(Visitor *v) override { v->visit(this); }
422 };
423
424 class SwitchStatement final : public Statement
425 {
426 public:
427 Parameter *param;
428 Expression *condition;
429 Statement *_body;
430 d_bool isFinal;
431 Loc endloc;
432
433 d_bool hasDefault; // true if default statement
434 d_bool hasVars; // true if has variable case values
435 DefaultStatement *sdefault;
436 Statement *tryBody; // set to TryCatchStatement or TryFinallyStatement if in _body portion
437 TryFinallyStatement *tf;
438 GotoCaseStatements gotoCases; // array of unresolved GotoCaseStatement's
439 CaseStatements *cases; // array of CaseStatement's
440 VarDeclaration *lastVar;
441
442 SwitchStatement *syntaxCopy() override;
443 bool hasBreak() const override;
444
445 void accept(Visitor *v) override { v->visit(this); }
446 };
447
448 class CaseStatement final : public Statement
449 {
450 public:
451 Expression *exp;
452 Statement *statement;
453
454 int index; // which case it is (since we sort this)
455 VarDeclaration *lastVar;
456 void* extra; // for use by Statement_toIR()
457
458 CaseStatement *syntaxCopy() override;
459
460 void accept(Visitor *v) override { v->visit(this); }
461 };
462
463
464 class CaseRangeStatement final : public Statement
465 {
466 public:
467 Expression *first;
468 Expression *last;
469 Statement *statement;
470
471 CaseRangeStatement *syntaxCopy() override;
472 void accept(Visitor *v) override { v->visit(this); }
473 };
474
475
476 class DefaultStatement final : public Statement
477 {
478 public:
479 Statement *statement;
480 VarDeclaration *lastVar;
481
482 DefaultStatement *syntaxCopy() override;
483
484 void accept(Visitor *v) override { v->visit(this); }
485 };
486
487 class GotoDefaultStatement final : public Statement
488 {
489 public:
490 SwitchStatement *sw;
491
492 GotoDefaultStatement *syntaxCopy() override;
493
494 void accept(Visitor *v) override { v->visit(this); }
495 };
496
497 class GotoCaseStatement final : public Statement
498 {
499 public:
500 Expression *exp; // NULL, or which case to goto
501 CaseStatement *cs; // case statement it resolves to
502
503 GotoCaseStatement *syntaxCopy() override;
504
505 void accept(Visitor *v) override { v->visit(this); }
506 };
507
508 class SwitchErrorStatement final : public Statement
509 {
510 public:
511 Expression *exp;
512
513 void accept(Visitor *v) override { v->visit(this); }
514 };
515
516 class ReturnStatement final : public Statement
517 {
518 public:
519 Expression *exp;
520 size_t caseDim;
521
522 ReturnStatement *syntaxCopy() override;
523
524 ReturnStatement *endsWithReturnStatement() override { return this; }
525 void accept(Visitor *v) override { v->visit(this); }
526 };
527
528 class BreakStatement final : public Statement
529 {
530 public:
531 Identifier *ident;
532
533 BreakStatement *syntaxCopy() override;
534
535 void accept(Visitor *v) override { v->visit(this); }
536 };
537
538 class ContinueStatement final : public Statement
539 {
540 public:
541 Identifier *ident;
542
543 ContinueStatement *syntaxCopy() override;
544
545 void accept(Visitor *v) override { v->visit(this); }
546 };
547
548 class SynchronizedStatement final : public Statement
549 {
550 public:
551 Expression *exp;
552 Statement *_body;
553
554 SynchronizedStatement *syntaxCopy() override;
555 bool hasBreak() const override;
556 bool hasContinue() const override;
557
558 void accept(Visitor *v) override { v->visit(this); }
559 };
560
561 class WithStatement final : public Statement
562 {
563 public:
564 Expression *exp;
565 Statement *_body;
566 VarDeclaration *wthis;
567 Loc endloc;
568
569 WithStatement *syntaxCopy() override;
570
571 void accept(Visitor *v) override { v->visit(this); }
572 };
573
574 class TryCatchStatement final : public Statement
575 {
576 public:
577 Statement *_body;
578 Catches *catches;
579
580 Statement *tryBody; /// set to enclosing TryCatchStatement or TryFinallyStatement if in _body portion
581
582 TryCatchStatement *syntaxCopy() override;
583 bool hasBreak() const override;
584
585 void accept(Visitor *v) override { v->visit(this); }
586 };
587
588 class Catch final : public RootObject
589 {
590 public:
591 Loc loc;
592 Type *type;
593 Identifier *ident;
594 Statement *handler;
595
596 VarDeclaration *var;
597 // set if semantic processing errors
598 d_bool errors;
599
600 // was generated by the compiler,
601 // wasn't present in source code
602 d_bool internalCatch;
603
604 Catch *syntaxCopy();
605 };
606
607 class TryFinallyStatement final : public Statement
608 {
609 public:
610 Statement *_body;
611 Statement *finalbody;
612
613 Statement *tryBody; // set to enclosing TryCatchStatement or TryFinallyStatement if in _body portion
614 d_bool bodyFallsThru; // true if _body falls through to finally
615
616 static TryFinallyStatement *create(Loc loc, Statement *body, Statement *finalbody);
617 TryFinallyStatement *syntaxCopy() override;
618 bool hasBreak() const override;
619 bool hasContinue() const override;
620
621 void accept(Visitor *v) override { v->visit(this); }
622 };
623
624 class ScopeGuardStatement final : public Statement
625 {
626 public:
627 TOK tok;
628 Statement *statement;
629
630 ScopeGuardStatement *syntaxCopy() override;
631
632 void accept(Visitor *v) override { v->visit(this); }
633 };
634
635 class ThrowStatement final : public Statement
636 {
637 public:
638 Expression *exp;
639 // was generated by the compiler,
640 // wasn't present in source code
641 d_bool internalThrow;
642
643 ThrowStatement *syntaxCopy() override;
644
645 void accept(Visitor *v) override { v->visit(this); }
646 };
647
648 class DebugStatement final : public Statement
649 {
650 public:
651 Statement *statement;
652
653 DebugStatement *syntaxCopy() override;
654 void accept(Visitor *v) override { v->visit(this); }
655 };
656
657 class GotoStatement final : public Statement
658 {
659 public:
660 Identifier *ident;
661 LabelDsymbol *label;
662 Statement *tryBody; /// set to enclosing TryCatchStatement or TryFinallyStatement if in _body portion
663 TryFinallyStatement *tf;
664 ScopeGuardStatement *os;
665 VarDeclaration *lastVar;
666 d_bool inCtfeBlock;
667 GotoStatement *syntaxCopy() override;
668
669 void accept(Visitor *v) override { v->visit(this); }
670 };
671
672 class LabelStatement final : public Statement
673 {
674 public:
675 Identifier *ident;
676 Statement *statement;
677 Statement *tryBody; /// set to enclosing TryCatchStatement or TryFinallyStatement if in _body portion
678 TryFinallyStatement *tf;
679 ScopeGuardStatement *os;
680 VarDeclaration *lastVar;
681 Statement *gotoTarget; // interpret
682 void* extra; // used by Statement_toIR()
683 d_bool breaks; // someone did a 'break ident'
684 d_bool inCtfeBlock;
685 LabelStatement *syntaxCopy() override;
686
687 void accept(Visitor *v) override { v->visit(this); }
688 };
689
690 class LabelDsymbol final : public Dsymbol
691 {
692 public:
693 LabelStatement *statement;
694
695 d_bool deleted; // set if rewritten to return in foreach delegate
696 d_bool iasm; // set if used by inline assembler
697 d_bool duplicated; // set if multiply defined, to avoid duplicate error messages
698
699 static LabelDsymbol *create(Identifier *ident);
700 LabelDsymbol *isLabel() override;
701 void accept(Visitor *v) override { v->visit(this); }
702 };
703
704 namespace dmd
705 {
706 // in statementsem.d
707 Statement* statementSemantic(Statement *s, Scope *sc);
708 // in iasm.d
709 Statement* asmSemantic(AsmStatement *s, Scope *sc);
710 // in iasmgcc.d
711 Statement *gccAsmSemantic(GccAsmStatement *s, Scope *sc);
712 }
713
714 class AsmStatement : public Statement
715 {
716 public:
717 Token *tokens;
718 d_bool caseSensitive; // for register names
719
720 AsmStatement *syntaxCopy() override;
721 void accept(Visitor *v) override { v->visit(this); }
722 };
723
724 class InlineAsmStatement final : public AsmStatement
725 {
726 public:
727 void *asmcode;
728 unsigned asmalign; // alignment of this statement
729 unsigned regs; // mask of registers modified (must match regm_t in back end)
730 d_bool refparam; // true if function parameter is referenced
731 d_bool naked; // true if function is to be naked
732
733 InlineAsmStatement *syntaxCopy() override;
734 void accept(Visitor *v) override { v->visit(this); }
735 };
736
737 // A GCC asm statement - assembler instructions with D expression operands
738 class GccAsmStatement final : public AsmStatement
739 {
740 public:
741 StorageClass stc; // attributes of the asm {} block
742 Expression *insn; // string expression that is the template for assembler code
743 Expressions *args; // input and output operands of the statement
744 unsigned outputargs; // of the operands in 'args', the number of output operands
745 Identifiers *names; // list of symbolic names for the operands
746 Expressions *constraints; // list of string constants specifying constraints on operands
747 Expressions *clobbers; // list of string constants specifying clobbers and scratch registers
748 Identifiers *labels; // list of goto labels
749 GotoStatements *gotos; // of the goto labels, the equivalent statements they represent
750
751 GccAsmStatement *syntaxCopy() override;
752 void accept(Visitor *v) override { v->visit(this); }
753 };
754
755 // a complete asm {} block
756 class CompoundAsmStatement final : public CompoundStatement
757 {
758 public:
759 StorageClass stc; // postfix attributes like nothrow/pure/@trusted
760
761 CompoundAsmStatement *syntaxCopy() override;
762
763 void accept(Visitor *v) override { v->visit(this); }
764 };
765
766 class ImportStatement final : public Statement
767 {
768 public:
769 Dsymbols *imports; // Array of Import's
770
771 ImportStatement *syntaxCopy() override;
772
773 void accept(Visitor *v) override { v->visit(this); }
774 };