jitcraft/NameBinding.cpp
changeset 25 23e8b3d8e4e6
parent 21 af5d8e985502
child 47 050939c6181e
     1.1 --- a/jitcraft/NameBinding.cpp	Sun Jul 01 18:39:11 2012 -0700
     1.2 +++ b/jitcraft/NameBinding.cpp	Mon Jul 02 01:24:57 2012 -0700
     1.3 @@ -19,20 +19,21 @@
     1.4  
     1.5  using namespace jc;
     1.6  
     1.7 -BoundName::BoundName(Scope *scope, Name *name)
     1.8 +BoundName::BoundName(Scope *scope, Name *name, const SourcePosition &pos)
     1.9    : scope_(scope),
    1.10      name_(name),
    1.11 -    type_(NULL)
    1.12 +    type_(NULL),
    1.13 +    pos_(pos)
    1.14  {
    1.15  }
    1.16  
    1.17 -NamedFunction::NamedFunction(Scope *scope, Name *name)
    1.18 -  : BoundName(scope, name)
    1.19 +NamedFunction::NamedFunction(Scope *scope, Name *name, const SourcePosition &pos)
    1.20 +  : BoundName(scope, name, pos)
    1.21  {
    1.22  }
    1.23  
    1.24 -Variable::Variable(Scope *scope, Name *name)
    1.25 -  : BoundName(scope, name),
    1.26 +Variable::Variable(Scope *scope, Name *name, const SourcePosition &pos)
    1.27 +  : BoundName(scope, name, pos),
    1.28      location_(UNALLOCATED)
    1.29  {
    1.30  }