|
@ -19,6 +19,8 @@ export default class Declaration { |
|
|
|
|
|
|
|
|
this.isReassigned = false; |
|
|
this.isReassigned = false; |
|
|
this.aliases = []; |
|
|
this.aliases = []; |
|
|
|
|
|
|
|
|
|
|
|
this.isUsed = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
addAlias ( declaration ) { |
|
|
addAlias ( declaration ) { |
|
@ -53,6 +55,8 @@ export default 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(); |
|
|
|
|
|
|
|
|