Permalink
Browse files

Typo fix

  • Loading branch information...
1 parent 0cf33f1 commit 153049a0031c89a43d06988dd05988fb4df94939 @FGRibreau committed Sep 3, 2011
Showing with 10 additions and 11 deletions.
  1. +1 −1 LICENSE
  2. +2 −2 README.md
  3. +6 −7 lib/ast_inlining.js
  4. +1 −1 package.json
View
@@ -11,7 +11,7 @@ modification, are permitted provided that the following conditions are met:
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- * Neither the name of node-ast-inliner nor the names of its contributors
+ * Neither the name of node-ast-inlining nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
View
@@ -88,7 +88,7 @@ modification, are permitted provided that the following conditions are met:
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- - Neither the name of node-ast-inliner nor the names of its contributors
+ - Neither the name of node-ast-inlining nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
@@ -101,4 +101,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -45,12 +45,12 @@ inliner.prototype.inline_ast = function(root, _context){
while(c = queue.pop()){
- // Si c'est un call, et que le ["name"] est présent dans le context, inliner l'appel
+ // We've found a call, if this call is present in the context inline it
if(c.context[0] == 'call' && this._getAccessors(c.context[1]).reverse()[0] in context){
c.parentContext[c.parentContextIndex] = this._inlineCall(c.context, context);
} else {
- // parcourir le tableau à la recherche d'autres tableau
+ // Find others array in c.context array
var i = c.context.length;
while(i--){
@@ -117,7 +117,7 @@ inliner.prototype._inlineCall = function(callRoot, context, parentArgsValue){
}
}
- // Return the function's body after the return
+ // Return the function's body after return
return fctAst[1][0][3][0][1];
};
@@ -131,7 +131,6 @@ inliner.prototype._transferArgs = function(parentArgsValue, fctArgs, callingArgs
while(i--){
args[fctArgs[i]] = callingArgs[i];
- // Si des arguments parent sont définis, les remplacer dans l'enfant
if(parentArgsValue){
this._replace(args,fctArgs[i], parentArgsValue);
}
@@ -146,13 +145,13 @@ inliner.prototype._replace = function(parentContext, parentContextIndex, hashRep
while(c = queue.pop()){
- // name trouvé, vérifier que l'argument est dans ceux d'appel
+ // We've found a var, check if it's an argument
if(c.context[0] == 'name' && hashReplace[c.context[1]]){
- // Remplacer le ["name","xxx"] par sa valeur d'appel
+ // Replace ["name","xxx"] by his calling value
c.parentContext[c.parentContextIndex] = hashReplace[c.context[1]];
} else {
- // parcourir la Array à la recherche d'autres array
+ // Find others array in c.context array
var i = c.context.length;
while(i--){
View
@@ -2,7 +2,7 @@
"name" : "ast-inlining",
"description" : "Nodejs language detection library using n-gram",
"keywords": ["ast", "inlining", "inline expansion"],
- "version": "1.0.0",
+ "version": "1.0.1",
"homepage": "https://github.com/FGRibreau/node-ast-inlining/",
"author" : "Francois-Guillaume Ribreau <npm@fgribreau.com> (http://fgribreau.com)",
"main" : "index",

0 comments on commit 153049a

Please sign in to comment.