Browse Source

add mark method to base Identifier class (makes project buildable)

gh-109
Rich-Harris 9 years ago
parent
commit
db27db36e2
  1. 10
      src/Scope.js

10
src/Scope.js

@ -2,8 +2,14 @@ import { blank, keys } from './utils/object';
// A minimal `Identifier` implementation. Anything that has an `originalName`,
// and a mutable `name` property can be used as an `Identifier`.
function Identifier ( name ) {
this.originalName = this.name = name;
class Identifier {
constructor ( name ) {
this.originalName = this.name = name;
}
mark () {
// noop
}
}
// A reference to an `Identifier`.

Loading…
Cancel
Save