|
@ -40,6 +40,8 @@ class Declaration { |
|
|
|
|
|
|
|
|
this.isReassigned = false; |
|
|
this.isReassigned = false; |
|
|
this.aliases = []; |
|
|
this.aliases = []; |
|
|
|
|
|
|
|
|
|
|
|
this.isUsed = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
addAlias ( declaration ) { |
|
|
addAlias ( declaration ) { |
|
@ -61,6 +63,8 @@ class Declaration { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
use () { |
|
|
use () { |
|
|
|
|
|
if ( this.isUsed ) return; |
|
|
|
|
|
|
|
|
this.isUsed = true; |
|
|
this.isUsed = true; |
|
|
if ( this.statement ) this.statement.mark(); |
|
|
if ( this.statement ) this.statement.mark(); |
|
|
|
|
|
|
|
|