src/compiler/Parser.cpp
changeset 256 3c184218462d
parent 252 1dee2330aa78
child 257 9db4cc815ebc
     1.1 --- a/src/compiler/Parser.cpp	Tue Jan 01 20:08:34 2013 -0800
     1.2 +++ b/src/compiler/Parser.cpp	Sun Jan 06 13:52:21 2013 -0800
     1.3 @@ -1236,9 +1236,7 @@
     1.4  static inline ScopedRoot<T> *
     1.5  NewScopedRoot(PoolAllocator &pool, Handle<T> obj)
     1.6  {
     1.7 -    ScopedRoot<T> *root = pool.alloc<ScopedRoot<T> >();
     1.8 -    new (root) ScopedRoot<T>(obj);
     1.9 -    return root;
    1.10 +    return new (pool) ScopedRoot<T>(obj);
    1.11  }
    1.12  
    1.13  ImportStatement *
    1.14 @@ -1246,7 +1244,7 @@
    1.15  {
    1.16      SourcePosition pos = scanner_.begin();
    1.17  
    1.18 -    // import       ::= import_path ("." "*")?
    1.19 +    // import       ::= import_path
    1.20      // import_path  ::= name |
    1.21      //                  name "." import_path
    1.22  
    1.23 @@ -1259,11 +1257,6 @@
    1.24  
    1.25      TokenKind suffix = TOK_NONE;
    1.26      while (match(TOK_DOT)) {
    1.27 -        if (match(TOK_STAR)) {
    1.28 -            suffix = TOK_STAR;
    1.29 -            break;
    1.30 -        }
    1.31 -
    1.32          if ((name = expectName()) == NULL)
    1.33              return NULL;
    1.34  
    1.35 @@ -1271,7 +1264,7 @@
    1.36          current = current->next;
    1.37      }
    1.38  
    1.39 -    return new (pool_) ImportStatement(pos, root, suffix);
    1.40 +    return new (pool_) ImportStatement(pos, root);
    1.41  }
    1.42  
    1.43  Statement *