mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Revert "Moving the 'generated by coffeescript version X' comment to the bottom, to get it out of the way"
This reverts commit b31cc70235
.
This commit is contained in:
parent
3d3fe0df34
commit
2402f9774a
15 changed files with 19 additions and 32 deletions
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var CoffeeScript, runScripts;
|
||||
|
||||
|
@ -89,5 +90,3 @@
|
|||
}
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var CoffeeScript, cakefileDirectory, existsSync, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;
|
||||
|
||||
|
@ -110,5 +111,3 @@
|
|||
};
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var Lexer, compile, ext, extensions, fs, lexer, loadFile, parser, path, vm, _i, _len,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||
|
@ -36,7 +37,7 @@
|
|||
exports.helpers = require('./helpers');
|
||||
|
||||
exports.compile = compile = function(code, options) {
|
||||
var footer, js, merge;
|
||||
var header, js, merge;
|
||||
if (options == null) {
|
||||
options = {};
|
||||
}
|
||||
|
@ -52,8 +53,8 @@
|
|||
}
|
||||
throw err;
|
||||
}
|
||||
footer = "Generated by CoffeeScript " + this.VERSION;
|
||||
return "" + js + "\n// " + footer + "\n";
|
||||
header = "Generated by CoffeeScript " + this.VERSION;
|
||||
return "// " + header + "\n" + js;
|
||||
};
|
||||
|
||||
exports.tokens = function(code, options) {
|
||||
|
@ -167,5 +168,3 @@
|
|||
parser.yy = require('./nodes');
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var BANNER, CoffeeScript, EventEmitter, SWITCHES, coffee_exts, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, exists, forkNode, fs, helpers, hidden, joinTimeout, lint, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, removeSource, sourceCode, sources, spawn, timeLog, unwatchDir, usage, version, wait, watch, watchDir, watchers, writeJs, _ref,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
||||
|
@ -490,5 +491,3 @@
|
|||
};
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
|
||||
|
||||
|
@ -609,5 +610,3 @@
|
|||
});
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var extend, flatten, _ref;
|
||||
|
||||
|
@ -85,5 +86,3 @@
|
|||
};
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var key, val, _ref;
|
||||
|
||||
|
@ -8,5 +9,3 @@
|
|||
}
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HEREDOC, HEREDOC_ILLEGAL, HEREDOC_INDENT, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDEXABLE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LINE_BREAK, LINE_CONTINUER, LITERATE, LOGIC, Lexer, MATH, MULTILINER, MULTI_DENT, NOT_REGEX, NOT_SPACED_REGEX, NUMBER, OPERATOR, REGEX, RELATION, RESERVED, Rewriter, SHIFT, SIMPLESTR, STRICT_PROSCRIBED, TRAILING_SPACES, UNARY, WHITESPACE, compact, count, key, last, starts, _ref, _ref1,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
||||
|
@ -815,5 +816,3 @@
|
|||
LINE_BREAK = ['INDENT', 'OUTDENT', 'TERMINATOR'];
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var Access, Arr, Assign, Base, Block, Call, Class, Closure, Code, Comment, Existence, Extends, For, IDENTIFIER, IDENTIFIER_STR, IS_STRING, If, In, Index, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, METHOD_DEF, NEGATE, NO, Obj, Op, Param, Parens, RESERVED, Range, Return, SIMPLENUM, STRICT_PROSCRIBED, Scope, Slice, Splat, Switch, TAB, THIS, Throw, Try, UTILITIES, Value, While, YES, compact, del, ends, extend, flatten, last, merge, multident, some, starts, unfoldSoak, utility, _ref, _ref1,
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
|
@ -3000,5 +3001,3 @@
|
|||
};
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments;
|
||||
|
||||
|
@ -135,5 +136,3 @@
|
|||
};
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var CoffeeScript, addMultilineHandler, merge, nodeREPL, replDefaults, vm;
|
||||
|
||||
|
@ -101,5 +102,3 @@
|
|||
};
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var BALANCED_PAIRS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_BLOCK, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, left, rite, _i, _len, _ref,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||
|
@ -348,5 +349,3 @@
|
|||
LINEBREAKS = ['TERMINATOR', 'INDENT', 'OUTDENT'];
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Generated by CoffeeScript 1.5.0-pre
|
||||
(function() {
|
||||
var Scope, extend, last, _ref;
|
||||
|
||||
|
@ -143,5 +144,3 @@
|
|||
})();
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Generated by CoffeeScript 1.5.0-pre
|
||||
|
|
|
@ -41,8 +41,8 @@ exports.compile = compile = (code, options = {}) ->
|
|||
catch err
|
||||
err.message = "In #{options.filename}, #{err.message}" if options.filename
|
||||
throw err
|
||||
footer = "Generated by CoffeeScript #{@VERSION}"
|
||||
"#{js}\n// #{footer}\n"
|
||||
header = "Generated by CoffeeScript #{@VERSION}"
|
||||
"// #{header}\n#{js}"
|
||||
|
||||
# Tokenize a string of CoffeeScript code, and return the array of tokens.
|
||||
exports.tokens = (code, options) ->
|
||||
|
|
|
@ -15,7 +15,7 @@ test "--bare", ->
|
|||
|
||||
test "header (#1778)", ->
|
||||
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"
|
||||
ok CoffeeScript.compile('x = y', header: on).indexOf(header) >= 0
|
||||
eq 0, CoffeeScript.compile('x = y', header: on).indexOf header
|
||||
|
||||
test "header is disabled by default", ->
|
||||
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue