mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Merge branch 'master' of github.com:jashkenas/coffeescript into 2
# Conflicts: # lib/coffee-script/nodes.js # lib/coffee-script/scope.js
This commit is contained in:
@@ -2161,7 +2161,7 @@
|
||||
|
||||
compileNode(o) {
|
||||
var code;
|
||||
o.scope.add(this.identifier, this.moduleDeclarationType);
|
||||
o.scope.find(this.identifier, this.moduleDeclarationType);
|
||||
code = [];
|
||||
code.push(this.makeCode(this.original.value));
|
||||
if (this.alias != null) {
|
||||
|
||||
@@ -45,11 +45,11 @@
|
||||
return this.parent.namedMethod();
|
||||
}
|
||||
|
||||
find(name) {
|
||||
find(name, type = 'var') {
|
||||
if (this.check(name)) {
|
||||
return true;
|
||||
}
|
||||
this.add(name, 'var');
|
||||
this.add(name, type);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user