From d1cb3d58a1fed07b62ce1add86732b5afba2b343 Mon Sep 17 00:00:00 2001 From: Bitdeli Chef Date: Mon, 18 Nov 2013 16:56:45 +0000 Subject: [PATCH 1/6] Add a Bitdeli badge to README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c3ee967..ad8b16d 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,7 @@ XforJS ====== Javascript Template Compiler written in javascript + + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/jsdevel/xforjs/trend.png)](https://bitdeli.com/free "Bitdeli Badge") + From 3d5fbde8ba83c29d7e6820f6afdc139120baae4c Mon Sep 17 00:00:00 2001 From: jsdevel Date: Mon, 16 Jun 2014 23:31:28 -0700 Subject: [PATCH 2/6] removing nbproject. --- nbproject/project.properties | 9 --------- nbproject/project.xml | 9 --------- 2 files changed, 18 deletions(-) delete mode 100644 nbproject/project.properties delete mode 100644 nbproject/project.xml diff --git a/nbproject/project.properties b/nbproject/project.properties deleted file mode 100644 index 11f3f33..0000000 --- a/nbproject/project.properties +++ /dev/null @@ -1,9 +0,0 @@ -include.path=${php.global.include.path} -php.version=PHP_53 -source.encoding=UTF-8 -src.dir=./src -test.src.dir=./test -tags.asp=false -tags.short=true -web.root=. -project.license=apache20 \ No newline at end of file diff --git a/nbproject/project.xml b/nbproject/project.xml deleted file mode 100644 index 5f09375..0000000 --- a/nbproject/project.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - org.netbeans.modules.php.project - - - XforJS - - - From d40cc54a7fa023dde04bffccbcfcca7047066c6e Mon Sep 17 00:00:00 2001 From: jsdevel Date: Mon, 16 Jun 2014 23:33:28 -0700 Subject: [PATCH 3/6] Adding package.json --- package.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..0b9786a --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "xforjs", + "version": "2.0.4", + "description": "A Javscript Template Compiler that would make Mama proud.", + "preferGlobal": false, + "main": "./index.js", + "author": "Joseph Spencer ", + "keywords": [ + "javascript", + "template", + "compiler" + ], + "bin":{ + "xforjs":"./bin/xforjs.js" + }, + "dependencies":[ + "config-tools", + "walk" + ], + "analyze": false, + "license": "apache 2.0", + "repository": { + "type": "git", + "url": "https://github.com/jsdevel/XforJS.git" + } +} From ce680f206b40037be0096a2ffde531dd4fe87638 Mon Sep 17 00:00:00 2001 From: jsdevel Date: Mon, 16 Jun 2014 23:37:48 -0700 Subject: [PATCH 4/6] Adding gitignore. --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 68fa45d..34b23da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -/nbproject/private/ -/build/ \ No newline at end of file +/build/ +/node_modules/ From b31516807f9f62d2f1667c5a560c0d21cc23cd25 Mon Sep 17 00:00:00 2001 From: jsdevel Date: Mon, 16 Jun 2014 23:38:06 -0700 Subject: [PATCH 5/6] Updating package.json --- package.json | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 0b9786a..6fdf187 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,25 @@ { - "name": "xforjs", - "version": "2.0.4", - "description": "A Javscript Template Compiler that would make Mama proud.", - "preferGlobal": false, - "main": "./index.js", - "author": "Joseph Spencer ", - "keywords": [ - "javascript", - "template", - "compiler" - ], - "bin":{ - "xforjs":"./bin/xforjs.js" - }, - "dependencies":[ - "config-tools", - "walk" - ], - "analyze": false, - "license": "apache 2.0", - "repository": { - "type": "git", - "url": "https://github.com/jsdevel/XforJS.git" - } + "name": "xforjs", + "version": "2.0.4", + "description": "A Javscript Template Compiler that would make Mama proud.", + "preferGlobal": false, + "main": "./index.js", + "author": "Joseph Spencer ", + "keywords": [ + "javascript", + "template", + "compiler" + ], + "bin": { + "xforjs": "./bin/xforjs.js" + }, + "license": "apache 2.0", + "repository": { + "type": "git", + "url": "https://github.com/jsdevel/XforJS.git" + }, + "dependencies": { + "config-tools": "~1.2.3", + "walk": "~2.3.3" + } } From db671a8d1b4a43906e7f6bd87acbe04776d76749 Mon Sep 17 00:00:00 2001 From: jsdevel Date: Tue, 17 Jun 2014 00:15:39 -0700 Subject: [PATCH 6/6] Moving to MIT license. --- LICENSE | 38 ++++++----- README.md | 4 -- bin/build_framework.js | 16 ----- bin/common.js | 18 +---- bin/developing | 14 ---- bin/integrating | 15 ----- bin/run_all_integration_tests.js | 18 +---- bin/run_all_unit_tests.js | 18 +---- bin/testing | 16 ----- src/XforJS.js | 31 +++++---- src/compiling/CallManager.js | 19 +----- src/compiling/Compiler.js | 19 +----- src/javascript/CountElements.js | 18 +---- src/javascript/EscapeXSS.js | 18 +---- src/javascript/GetLibrary.js | 67 ++++++++----------- src/javascript/SafeValue.js | 16 ----- src/javascript/StringBuffer.js | 18 +---- src/javascript/each.js | 19 +----- src/javascript/getSafeArray.js | 19 +----- src/javascript/sortSafeArray.js | 19 +----- src/misc/Globals.js | 19 +----- src/misc/extend.js | 17 ----- src/output/AbstractVariableOutput.js | 17 ----- src/output/JSArgumentsWrapper.js | 17 ----- src/output/JSParameters.js | 19 +----- src/output/JSParametersWrapper.js | 17 ----- src/output/JavascriptBuilder.js | 20 +----- src/output/Output.js | 16 ----- src/parsing/CharWrapper.js | 19 +----- src/productions/AbstractAssignment.js | 19 +----- src/productions/AbstractConditionBlock.js | 17 ----- src/productions/AbstractExpression.js | 19 +----- .../AbstractParenthesizedExpression.js | 19 +----- .../AbstractVariableDeclaration.js | 19 +----- .../AbstractVariableDeclarations.js | 19 +----- src/productions/CallArguments.js | 18 +---- src/productions/CallExpression.js | 19 +----- src/productions/ContextDynamicRefinement.js | 19 +----- src/productions/ContextExpression.js | 19 +----- .../ContextParenthesizedExpression.js | 19 +----- src/productions/ContextSelector.js | 19 +----- src/productions/ForeachBodyStatements.js | 19 +----- src/productions/ForeachStatement.js | 17 ----- src/productions/GlobalExpression.js | 18 +---- .../GlobalParenthesizedExpression.js | 17 ----- src/productions/GlobalStatements.js | 16 ----- src/productions/GlobalVariableAssignment.js | 17 ----- src/productions/GlobalVariableDeclaration.js | 17 ----- src/productions/GlobalVariableDeclarations.js | 20 +----- src/productions/GlobalVariableValue.js | 19 +----- src/productions/IfStatement.js | 19 +----- src/productions/ImportStatement.js | 17 ----- src/productions/ImportStatements.js | 16 ----- src/productions/InputTokens.js | 19 +----- src/productions/LogStatement.js | 19 +----- src/productions/Operator.js | 17 ----- src/productions/ParamDeclaration.js | 19 +----- src/productions/ParamDeclarations.js | 19 +----- src/productions/PrintStatement.js | 19 +----- src/productions/Production.js | 18 +---- src/productions/ProductionContext.js | 19 +----- src/productions/Program.js | 19 +----- src/productions/ProgramNamespace.js | 19 +----- src/productions/RenderExpression.js | 19 +----- src/productions/RenderParamDeclaration.js | 19 +----- src/productions/RenderParamDeclarations.js | 19 +----- src/productions/RenderStatement.js | 19 +----- src/productions/SortStatement.js | 19 +----- src/productions/TemplateBody.js | 16 ----- src/productions/TemplateBodyStatements.js | 19 +----- src/productions/TemplateDeclaration.js | 19 +----- src/productions/TextStatement.js | 19 +----- src/productions/VariableAssignment.js | 19 +----- src/productions/VariableDeclaration.js | 19 +----- src/productions/VariableDeclarations.js | 19 +----- src/productions/VariableExpression.js | 16 ----- .../VariableParenthesizedExpression.js | 19 +----- src/productions/VariableValue.js | 19 +----- .../compiling/test_compile_errors.js | 18 +---- .../compiling/test_documentation.js | 18 +---- .../compiling/test_no_compile_errors.js | 18 +---- test/integrations/framework/test_XforJS.js | 18 +---- .../testing_output/test_calling.js | 17 +---- .../testing_output/test_context_selector.js | 17 +---- .../testing_output/test_input_tokens.js | 17 +---- test/integrations/testing_output/test_misc.js | 17 +---- .../testing_output/test_print_modifiers.js | 17 +---- .../testing_output/test_print_statement.js | 17 +---- .../testing_output/test_sorting.js | 18 +---- test/units/compiling/test_CallManager.js | 16 ----- test/units/compiling/test_Compiler.js | 18 +---- test/units/javascript/test_GetLibrary.js | 18 +---- test/units/javascript/test_StringBuffer.js | 18 +---- test/units/javascript/test_each.js | 19 +----- test/units/javascript/test_getSafeArray.js | 19 +----- test/units/javascript/test_sortSafeArray.js | 19 +----- test/units/misc/test_Globals.js | 18 +---- test/units/misc/test_extend.js | 18 +---- .../output/test_AbstractVariableOutput.js | 18 +---- test/units/output/test_JSArgumentsWrapper.js | 18 +---- test/units/output/test_JSParameters.js | 18 +---- test/units/output/test_JSParametersWrapper.js | 18 +---- test/units/output/test_JavascriptBuilder.js | 18 +---- test/units/output/test_Output.js | 18 +---- test/units/parsing/test_CharWrapper.js | 18 +---- .../productions/test_AbstractAssignment.js | 18 +---- .../test_AbstractConditionBlock.js | 18 +---- .../productions/test_AbstractExpression.js | 18 +---- .../test_AbstractParenthesizedExpression.js | 18 +---- .../test_AbstractVariableDeclaration.js | 18 +---- .../test_AbstractVariableDeclarations.js | 19 +----- test/units/productions/test_CallArguments.js | 17 +---- test/units/productions/test_CallExpression.js | 15 ----- .../test_ContextDynamicRefinement.js | 18 +---- .../productions/test_ContextExpression.js | 18 +---- .../test_ContextParenthesizedExpression.js | 18 +---- .../units/productions/test_ContextSelector.js | 18 +---- .../productions/test_ForeachBodyStatements.js | 18 +---- .../productions/test_ForeachStatement.js | 18 +---- .../productions/test_GlobalExpression.js | 18 +---- .../test_GlobalParenthesizedExpression.js | 18 +---- .../productions/test_GlobalStatements.js | 18 +---- .../test_GlobalVariableAssignment.js | 18 +---- .../test_GlobalVariableDeclaration.js | 18 +---- .../test_GlobalVariableDeclarations.js | 18 +---- .../productions/test_GlobalVariableValue.js | 18 +---- test/units/productions/test_IfStatement.js | 19 +----- .../units/productions/test_ImportStatement.js | 18 +---- .../productions/test_ImportStatements.js | 18 +---- test/units/productions/test_InputTokens.js | 18 +---- test/units/productions/test_LogStatement.js | 19 +----- test/units/productions/test_Operator.js | 18 +---- .../productions/test_ParamDeclaration.js | 18 +---- .../productions/test_ParamDeclarations.js | 18 +---- test/units/productions/test_PrintStatement.js | 18 +---- test/units/productions/test_Production.js | 18 +---- .../productions/test_ProductionContext.js | 18 +---- test/units/productions/test_Program.js | 18 +---- .../productions/test_ProgramNamespace.js | 18 +---- .../productions/test_RenderExpression.js | 18 +---- .../test_RenderParamDeclaration.js | 18 +---- .../test_RenderParamDeclarations.js | 18 +---- .../units/productions/test_RenderStatement.js | 18 +---- test/units/productions/test_SortStatement.js | 18 +---- test/units/productions/test_TemplateBody.js | 18 +---- .../test_TemplateBodyStatements.js | 18 +---- .../productions/test_TemplateDeclaration.js | 18 +---- test/units/productions/test_TextStatement.js | 18 +---- .../productions/test_VariableAssignment.js | 18 +---- .../productions/test_VariableDeclaration.js | 18 +---- .../productions/test_VariableDeclarations.js | 18 +---- .../productions/test_VariableExpression.js | 18 +---- .../test_VariableParenthesizedExpression.js | 18 +---- test/units/productions/test_VariableValue.js | 18 +---- test/units/test_XforJS.js | 18 +---- 155 files changed, 196 insertions(+), 2668 deletions(-) diff --git a/LICENSE b/LICENSE index f973d5a..1f7ab5d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,17 +1,21 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * For more info, visit http://jsdevel.github.com/XforJS/ - */ +The MIT License (MIT) + +Copyright (c) 2014 Joeph Spencer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index ad8b16d..c3ee967 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,3 @@ XforJS ====== Javascript Template Compiler written in javascript - - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/jsdevel/xforjs/trend.png)](https://bitdeli.com/free "Bitdeli Badge") - diff --git a/bin/build_framework.js b/bin/build_framework.js index e15afd6..160fd02 100755 --- a/bin/build_framework.js +++ b/bin/build_framework.js @@ -1,20 +1,4 @@ #!/bin/env node -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ !function(){ var common = require('./common'); var fs = require('fs'); diff --git a/bin/common.js b/bin/common.js index 2e6f1d1..6409a8b 100644 --- a/bin/common.js +++ b/bin/common.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ var fs = require('fs'); exports.buildFile=buildFile; @@ -63,7 +47,7 @@ function insertTestAndRun(fileToTest, input_test){ } catch(e){ console.log("FAIL: "+message); if(printError){ - console.log(e); + console.log(e.stack); } hasError=true; } diff --git a/bin/developing b/bin/developing index b7166db..3304e66 100755 --- a/bin/developing +++ b/bin/developing @@ -1,19 +1,5 @@ #!/bin/sh # -# Copyright 2012 Joseph Spencer. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# # Print real time results from all unit tests. cd $DIR_SRC; while inotifywait -qr -e MODIFY --exclude .*\\.swp $DIR_SRC>/dev/null diff --git a/bin/integrating b/bin/integrating index eaeb320..bad5c8a 100755 --- a/bin/integrating +++ b/bin/integrating @@ -1,20 +1,5 @@ #!/bin/sh # -# Copyright 2012 Joseph Spencer. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# # Print real time results from all unit tests. cd $DIR_TEST; diff --git a/bin/run_all_integration_tests.js b/bin/run_all_integration_tests.js index ac7917d..c96a6ac 100644 --- a/bin/run_all_integration_tests.js +++ b/bin/run_all_integration_tests.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ !function(){ //var pathToFramework = "../build/javascript/XforJS.min.js"; var pathToFramework = "../src/XforJS.js"; @@ -71,4 +55,4 @@ filesToTest.push(pathPrefix+value); }); } -}(); \ No newline at end of file +}(); diff --git a/bin/run_all_unit_tests.js b/bin/run_all_unit_tests.js index 437c22f..e1aa5d3 100644 --- a/bin/run_all_unit_tests.js +++ b/bin/run_all_unit_tests.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ var fs = require('fs'); var common = require('./common.js'); var loaded = 0; @@ -60,4 +44,4 @@ function addFilesToFilesToTest(filesToTest, files, pathPrefix){ files.forEach(function(value){ filesToTest.push(pathPrefix+value); }); -} \ No newline at end of file +} diff --git a/bin/testing b/bin/testing index b5020bc..36c5497 100755 --- a/bin/testing +++ b/bin/testing @@ -1,20 +1,4 @@ #!/bin/sh -# -# Copyright 2012 Joseph Spencer. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# # Print real time results from all unit tests. cd $DIR_TEST; diff --git a/src/XforJS.js b/src/XforJS.js index b4f8aa1..24ee8e3 100644 --- a/src/XforJS.js +++ b/src/XforJS.js @@ -1,23 +1,28 @@ /** * @preserve - * Copyright 2012 Joseph Spencer. + * Version: __VERSION__ * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * The MIT License (MIT) * - * http://www.apache.org/licenses/LICENSE-2.0 + * Copyright (c) 2014 Joe Spencer * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: * - * Version: __VERSION__ + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. * - * For demos and docs visit http://jsdevel.github.com/XforJS/ - * For viewing source visit http://github.com/jsdevel/XforJS/ + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. */ //This file is wrapped in closure during compilation. var root = this; diff --git a/src/compiling/CallManager.js b/src/compiling/CallManager.js index c260661..c5130fc 100644 --- a/src/compiling/CallManager.js +++ b/src/compiling/CallManager.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * CallManager provides a means to ensure that all called * templates within a file have actually been declared. @@ -77,4 +60,4 @@ function CallManager(){ } } }; -} \ No newline at end of file +} diff --git a/src/compiling/Compiler.js b/src/compiling/Compiler.js index 5c68d73..0d348f6 100644 --- a/src/compiling/Compiler.js +++ b/src/compiling/Compiler.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @param {Object} config Accepts a map of arguments. These may come from the @@ -96,4 +79,4 @@ function Compiler(config){ return output.toString(); }; -} \ No newline at end of file +} diff --git a/src/javascript/CountElements.js b/src/javascript/CountElements.js index 747d0e8..3b8323e 100644 --- a/src/javascript/CountElements.js +++ b/src/javascript/CountElements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ function CountElements(f){ var o, c=0, @@ -29,4 +13,4 @@ function CountElements(f){ } } return c -} \ No newline at end of file +} diff --git a/src/javascript/EscapeXSS.js b/src/javascript/EscapeXSS.js index d0bb73b..017d91e 100644 --- a/src/javascript/EscapeXSS.js +++ b/src/javascript/EscapeXSS.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ function EscapeXSS(s){ if(typeof(s)==='string'){ return s. @@ -25,4 +9,4 @@ function EscapeXSS(s){ replace(/>/g, '>'); } return s; -} \ No newline at end of file +} diff --git a/src/javascript/GetLibrary.js b/src/javascript/GetLibrary.js index 42ed498..2b8215e 100644 --- a/src/javascript/GetLibrary.js +++ b/src/javascript/GetLibrary.js @@ -1,47 +1,38 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ function GetLibrary(namespace){ var ns = js_LibNamespace; if(namespace!==void(0)){ ns=namespace; validateNamespacesAgainstReservedWords(ns); } - var lib = "/**\n"+ - " * @preserve\n"+ - " * Copyright 2012 Joseph Spencer.\n"+ - " *\n"+ - " * Licensed under the Apache License, Version 2.0 (the \"License\");\n"+ - " * you may not use this file except in compliance with the License.\n"+ - " * You may obtain a copy of the License at\n"+ - " *\n"+ - " * http://www.apache.org/licenses/LICENSE-2.0\n"+ - " *\n"+ - " * Unless required by applicable law or agreed to in writing, software\n"+ - " * distributed under the License is distributed on an \"AS IS\" BASIS,\n"+ - " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"+ - " * See the License for the specific language governing permissions and\n"+ - " * limitations under the License.\n"+ - " *\n"+ - " * Version: __VERSION__\n"+ - " *\n"+ - " * For demos and docs visit http://jsdevel.github.com/XforJS/\n"+ - " * For viewing source visit http://github.com/jsdevel/XforJS/\n"+ - " */\n"+ - + var lib = + [ + '/**', + ' * @preserve', + ' * Version: __VERSION__', + ' *', + ' * The MIT License (MIT)', + ' *', + ' * Copyright (c) 2014 Joe Spencer', + ' *', + ' * Permission is hereby granted, free of charge, to any person obtaining a copy', + ' * of this software and associated documentation files (the "Software"), to deal', + ' * in the Software without restriction, including without limitation the rights', + ' * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell', + ' * copies of the Software, and to permit persons to whom the Software is', + ' * furnished to do so, subject to the following conditions:', + ' *', + ' * The above copyright notice and this permission notice shall be included in', + ' * all copies or substantial portions of the Software.', + ' *', + ' * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR', + ' * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,', + ' * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE', + ' * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER', + ' * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,', + ' * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN', + ' * THE SOFTWARE.', + ' */' + ].join('\n')+ ns+"={\n"+ js_CountElements+":"+CountElements.toString()+",\n"+ js_EscapeXSS+":"+EscapeXSS.toString()+",\n"+ diff --git a/src/javascript/SafeValue.js b/src/javascript/SafeValue.js index ebd7e3d..11e50fa 100644 --- a/src/javascript/SafeValue.js +++ b/src/javascript/SafeValue.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ function SafeValue(v){ try{ return v() diff --git a/src/javascript/StringBuffer.js b/src/javascript/StringBuffer.js index 6299c55..ec9f6fe 100644 --- a/src/javascript/StringBuffer.js +++ b/src/javascript/StringBuffer.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ function StringBuffer(){ var r=[], i=0, @@ -32,4 +16,4 @@ function StringBuffer(){ return r.join('') }; return f -} \ No newline at end of file +} diff --git a/src/javascript/each.js b/src/javascript/each.js index e72b55c..cd2a7e6 100644 --- a/src/javascript/each.js +++ b/src/javascript/each.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - /** * @param {Array} safeArray * @param {function(Object, number, number, (string|number))} fn @@ -36,4 +19,4 @@ function each(safeArray, fn){ ); } } -} \ No newline at end of file +} diff --git a/src/javascript/getSafeArray.js b/src/javascript/getSafeArray.js index b12ff98..61df5e7 100644 --- a/src/javascript/getSafeArray.js +++ b/src/javascript/getSafeArray.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * This function returns a new array that may safely be sorted without * corrupting the natural sorting of the input data objects. It also allows @@ -43,4 +26,4 @@ function getSafeArray(fnOrObj){ } } return returnArray; -} \ No newline at end of file +} diff --git a/src/javascript/sortSafeArray.js b/src/javascript/sortSafeArray.js index 288ba46..700242a 100644 --- a/src/javascript/sortSafeArray.js +++ b/src/javascript/sortSafeArray.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - /* * * @param {Array} safeArray @@ -250,4 +233,4 @@ function sortSafeArray( } } } -} \ No newline at end of file +} diff --git a/src/misc/Globals.js b/src/misc/Globals.js index 9f925bd..5b9a88b 100644 --- a/src/misc/Globals.js +++ b/src/misc/Globals.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - //Save this section for regex. /** * @const @@ -491,4 +474,4 @@ var js_StringBuffer="S"; * @const * @type {string} */ -var js_LibNamespace = "XforJS.js"; \ No newline at end of file +var js_LibNamespace = "XforJS.js"; diff --git a/src/misc/extend.js b/src/misc/extend.js index 03c2f5d..81642a8 100644 --- a/src/misc/extend.js +++ b/src/misc/extend.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @param {Function} Child * @param {Function} Parent diff --git a/src/output/AbstractVariableOutput.js b/src/output/AbstractVariableOutput.js index 39f8b34..bb0d721 100644 --- a/src/output/AbstractVariableOutput.js +++ b/src/output/AbstractVariableOutput.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @param {string} variableStatementPrefix diff --git a/src/output/JSArgumentsWrapper.js b/src/output/JSArgumentsWrapper.js index eee2e6c..c57993d 100644 --- a/src/output/JSArgumentsWrapper.js +++ b/src/output/JSArgumentsWrapper.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @param {JSParameters} args diff --git a/src/output/JSParameters.js b/src/output/JSParameters.js index c9b89cd..686d850 100644 --- a/src/output/JSParameters.js +++ b/src/output/JSParameters.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor */ @@ -50,4 +33,4 @@ function JSParameters(){ this.getArguments=function(){ return values.join(','); }; -} \ No newline at end of file +} diff --git a/src/output/JSParametersWrapper.js b/src/output/JSParametersWrapper.js index bc264f2..dbc9dae 100644 --- a/src/output/JSParametersWrapper.js +++ b/src/output/JSParametersWrapper.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @param {JSParameters} params diff --git a/src/output/JavascriptBuilder.js b/src/output/JavascriptBuilder.js index 7c692e3..94860b1 100644 --- a/src/output/JavascriptBuilder.js +++ b/src/output/JavascriptBuilder.js @@ -1,21 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - - /** * This object is used to pass the relevant code off to productions from the * context. @@ -81,4 +63,4 @@ function JavascriptBuilder(args){ this.getJSStringBuffer=function(){ return js_stringBuffer; }; -} \ No newline at end of file +} diff --git a/src/output/Output.js b/src/output/Output.js index 769b47d..f88e9df 100644 --- a/src/output/Output.js +++ b/src/output/Output.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * Facillitates the Composite Pattern. * @constructor diff --git a/src/parsing/CharWrapper.js b/src/parsing/CharWrapper.js index 91e204a..0e3e40d 100644 --- a/src/parsing/CharWrapper.js +++ b/src/parsing/CharWrapper.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @param {string} characters @@ -144,4 +127,4 @@ function CharWrapper(characters){ this.toString=function(){ return _characters; }; -} \ No newline at end of file +} diff --git a/src/productions/AbstractAssignment.js b/src/productions/AbstractAssignment.js index 3356454..d86cbaa 100644 --- a/src/productions/AbstractAssignment.js +++ b/src/productions/AbstractAssignment.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -37,4 +20,4 @@ AbstractAssignment.prototype.execute=function(characters, context){ /** * @return {Production} */ -AbstractAssignment.prototype.getExpression=function(){}; \ No newline at end of file +AbstractAssignment.prototype.getExpression=function(){}; diff --git a/src/productions/AbstractConditionBlock.js b/src/productions/AbstractConditionBlock.js index 5acdfa0..2ecac75 100644 --- a/src/productions/AbstractConditionBlock.js +++ b/src/productions/AbstractConditionBlock.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} diff --git a/src/productions/AbstractExpression.js b/src/productions/AbstractExpression.js index b76aa72..e575909 100644 --- a/src/productions/AbstractExpression.js +++ b/src/productions/AbstractExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -115,4 +98,4 @@ AbstractExpression.prototype.getParenthesizedExpression=function(output){}; /** * @return {Output} */ -AbstractExpression.prototype.getOutput=function(){}; \ No newline at end of file +AbstractExpression.prototype.getOutput=function(){}; diff --git a/src/productions/AbstractParenthesizedExpression.js b/src/productions/AbstractParenthesizedExpression.js index fc5603b..57c831e 100644 --- a/src/productions/AbstractParenthesizedExpression.js +++ b/src/productions/AbstractParenthesizedExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -57,4 +40,4 @@ AbstractParenthesizedExpression.prototype.getExpression=function(output){}; /** * @return {Output} */ -AbstractParenthesizedExpression.prototype.getOutput=function(){}; \ No newline at end of file +AbstractParenthesizedExpression.prototype.getOutput=function(){}; diff --git a/src/productions/AbstractVariableDeclaration.js b/src/productions/AbstractVariableDeclaration.js index f3df613..fd6cf8d 100644 --- a/src/productions/AbstractVariableDeclaration.js +++ b/src/productions/AbstractVariableDeclaration.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -94,4 +77,4 @@ AbstractVariableDeclaration.prototype.doAssignment=function(name, output){}; * @param {string} name * @param {ProductionContext} context */ -AbstractVariableDeclaration.prototype.doNoAssignment=function(name, context){}; \ No newline at end of file +AbstractVariableDeclaration.prototype.doNoAssignment=function(name, context){}; diff --git a/src/productions/AbstractVariableDeclarations.js b/src/productions/AbstractVariableDeclarations.js index 6f9c78d..0e8ee6b 100644 --- a/src/productions/AbstractVariableDeclarations.js +++ b/src/productions/AbstractVariableDeclarations.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -53,4 +36,4 @@ AbstractVariableDeclarations.prototype.getDeclaration=function(){}; * Matches the start tag for declarations. * @return {RegExp} */ -AbstractVariableDeclarations.prototype.getDeclarationRegex=function(){}; \ No newline at end of file +AbstractVariableDeclarations.prototype.getDeclarationRegex=function(){}; diff --git a/src/productions/CallArguments.js b/src/productions/CallArguments.js index 8e40084..f2e1acf 100644 --- a/src/productions/CallArguments.js +++ b/src/productions/CallArguments.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - /** * @constructor * @extends {Production} @@ -71,4 +55,4 @@ extend(CallArguments, Production); * @const * @type {string} */ -CallArguments.prototype.name="CallArguments"; \ No newline at end of file +CallArguments.prototype.name="CallArguments"; diff --git a/src/productions/CallExpression.js b/src/productions/CallExpression.js index 8847d4c..b0e2720 100644 --- a/src/productions/CallExpression.js +++ b/src/productions/CallExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -53,4 +36,4 @@ extend(CallExpression, Production); * @const * @type {string} */ -CallExpression.prototype.name="CallExpression"; \ No newline at end of file +CallExpression.prototype.name="CallExpression"; diff --git a/src/productions/ContextDynamicRefinement.js b/src/productions/ContextDynamicRefinement.js index 6907061..5b32b3b 100644 --- a/src/productions/ContextDynamicRefinement.js +++ b/src/productions/ContextDynamicRefinement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -61,4 +44,4 @@ extend(ContextDynamicRefinement, Production); * @const * @type string */ -ContextDynamicRefinement.prototype.name="ContextDynamicRefinement"; \ No newline at end of file +ContextDynamicRefinement.prototype.name="ContextDynamicRefinement"; diff --git a/src/productions/ContextExpression.js b/src/productions/ContextExpression.js index 099635e..4caab66 100644 --- a/src/productions/ContextExpression.js +++ b/src/productions/ContextExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractExpression} @@ -50,4 +33,4 @@ extend(ContextExpression, AbstractExpression); * @const * @type {string} */ -ContextExpression.prototype.name="ContextExpression"; \ No newline at end of file +ContextExpression.prototype.name="ContextExpression"; diff --git a/src/productions/ContextParenthesizedExpression.js b/src/productions/ContextParenthesizedExpression.js index 71e7e67..365c096 100644 --- a/src/productions/ContextParenthesizedExpression.js +++ b/src/productions/ContextParenthesizedExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractParenthesizedExpression} @@ -41,4 +24,4 @@ extend(ContextParenthesizedExpression, AbstractParenthesizedExpression); * @const * @type {string} */ -ContextParenthesizedExpression.prototype.name="ContextParenthesizedExpression"; \ No newline at end of file +ContextParenthesizedExpression.prototype.name="ContextParenthesizedExpression"; diff --git a/src/productions/ContextSelector.js b/src/productions/ContextSelector.js index cde2e5a..0d2f6d4 100644 --- a/src/productions/ContextSelector.js +++ b/src/productions/ContextSelector.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -200,4 +183,4 @@ function ContextSelector(output, isNested){ } extend(ContextSelector, Production); /** @const @type string */ -ContextSelector.prototype.name = "ContextSelector"; \ No newline at end of file +ContextSelector.prototype.name = "ContextSelector"; diff --git a/src/productions/ForeachBodyStatements.js b/src/productions/ForeachBodyStatements.js index e3231a0..cf18f44 100644 --- a/src/productions/ForeachBodyStatements.js +++ b/src/productions/ForeachBodyStatements.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -84,4 +67,4 @@ extend(ForeachBodyStatements, Production); * @const * @type {string} */ -ForeachBodyStatements.prototype.name="ForeachBodyStatements"; \ No newline at end of file +ForeachBodyStatements.prototype.name="ForeachBodyStatements"; diff --git a/src/productions/ForeachStatement.js b/src/productions/ForeachStatement.js index ff332eb..47cd87b 100644 --- a/src/productions/ForeachStatement.js +++ b/src/productions/ForeachStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractConditionBlock} diff --git a/src/productions/GlobalExpression.js b/src/productions/GlobalExpression.js index 49d4d49..fa30738 100644 --- a/src/productions/GlobalExpression.js +++ b/src/productions/GlobalExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * @constructor * @extends {AbstractExpression} @@ -49,4 +33,4 @@ extend(GlobalExpression, AbstractExpression); * @const * @type {string} */ -GlobalExpression.prototype.name="GlobalExpression"; \ No newline at end of file +GlobalExpression.prototype.name="GlobalExpression"; diff --git a/src/productions/GlobalParenthesizedExpression.js b/src/productions/GlobalParenthesizedExpression.js index 13e0494..fa13f58 100644 --- a/src/productions/GlobalParenthesizedExpression.js +++ b/src/productions/GlobalParenthesizedExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractParenthesizedExpression} diff --git a/src/productions/GlobalStatements.js b/src/productions/GlobalStatements.js index 6bf65c4..506f34e 100644 --- a/src/productions/GlobalStatements.js +++ b/src/productions/GlobalStatements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * @constructor * @extends {Production} diff --git a/src/productions/GlobalVariableAssignment.js b/src/productions/GlobalVariableAssignment.js index 56b55b2..513f667 100644 --- a/src/productions/GlobalVariableAssignment.js +++ b/src/productions/GlobalVariableAssignment.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractAssignment} diff --git a/src/productions/GlobalVariableDeclaration.js b/src/productions/GlobalVariableDeclaration.js index e23f182..1badbc1 100644 --- a/src/productions/GlobalVariableDeclaration.js +++ b/src/productions/GlobalVariableDeclaration.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclaration} diff --git a/src/productions/GlobalVariableDeclarations.js b/src/productions/GlobalVariableDeclarations.js index ce02ff1..ce91b90 100644 --- a/src/productions/GlobalVariableDeclarations.js +++ b/src/productions/GlobalVariableDeclarations.js @@ -1,21 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - - /** * @constructor * @extends {Production} @@ -39,4 +21,4 @@ extend(GlobalVariableDeclarations, Production); * @const * @type {string} */ -GlobalVariableDeclarations.prototype.name="GlobalVariableDeclarations"; \ No newline at end of file +GlobalVariableDeclarations.prototype.name="GlobalVariableDeclarations"; diff --git a/src/productions/GlobalVariableValue.js b/src/productions/GlobalVariableValue.js index b5d9a15..d6a4469 100644 --- a/src/productions/GlobalVariableValue.js +++ b/src/productions/GlobalVariableValue.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -83,4 +66,4 @@ function GlobalVariableValue(output){ }; } extend(GlobalVariableValue, Production); -GlobalVariableValue.prototype.name="GlobalVariableValue"; \ No newline at end of file +GlobalVariableValue.prototype.name="GlobalVariableValue"; diff --git a/src/productions/IfStatement.js b/src/productions/IfStatement.js index 6ee4602..86fa6d1 100644 --- a/src/productions/IfStatement.js +++ b/src/productions/IfStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractConditionBlock} @@ -86,4 +69,4 @@ IfStatement.prototype.name="IfStatement"; */ IfStatement.prototype.getClosingPattern=function(){ return IF_CLOSING; -}; \ No newline at end of file +}; diff --git a/src/productions/ImportStatement.js b/src/productions/ImportStatement.js index 5b6b863..46bc033 100644 --- a/src/productions/ImportStatement.js +++ b/src/productions/ImportStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} diff --git a/src/productions/ImportStatements.js b/src/productions/ImportStatements.js index 568eafd..14941d0 100644 --- a/src/productions/ImportStatements.js +++ b/src/productions/ImportStatements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * @constructor * @extends {Production} diff --git a/src/productions/InputTokens.js b/src/productions/InputTokens.js index ad1d492..46da05e 100644 --- a/src/productions/InputTokens.js +++ b/src/productions/InputTokens.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -57,4 +40,4 @@ extend(InputTokens, Production); * @const * @type {string} */ -InputTokens.prototype.name="InputTokens"; \ No newline at end of file +InputTokens.prototype.name="InputTokens"; diff --git a/src/productions/LogStatement.js b/src/productions/LogStatement.js index 1bcf10c..721ac7f 100644 --- a/src/productions/LogStatement.js +++ b/src/productions/LogStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -58,4 +41,4 @@ extend(LogStatement, Production); * @const * @type {string} */ -LogStatement.prototype.name="LogStatement"; \ No newline at end of file +LogStatement.prototype.name="LogStatement"; diff --git a/src/productions/Operator.js b/src/productions/Operator.js index a1b1752..0bc7ac4 100644 --- a/src/productions/Operator.js +++ b/src/productions/Operator.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} diff --git a/src/productions/ParamDeclaration.js b/src/productions/ParamDeclaration.js index c4c3bfe..dbd9c6c 100644 --- a/src/productions/ParamDeclaration.js +++ b/src/productions/ParamDeclaration.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclaration} @@ -44,4 +27,4 @@ ParamDeclaration.prototype.getProduction=function(output){ }; ParamDeclaration.prototype.doAssignment=function(name, output){ output.add(js_params+"."+name+"||"); -}; \ No newline at end of file +}; diff --git a/src/productions/ParamDeclarations.js b/src/productions/ParamDeclarations.js index 4b8612c..8b19d27 100644 --- a/src/productions/ParamDeclarations.js +++ b/src/productions/ParamDeclarations.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclarations} @@ -38,4 +21,4 @@ ParamDeclarations.prototype._characterAfterOpenCurly="p"; */ ParamDeclarations.prototype.getDeclarationRegex=function(){ return PARAM; -}; \ No newline at end of file +}; diff --git a/src/productions/PrintStatement.js b/src/productions/PrintStatement.js index 6d2a0f2..9312e61 100644 --- a/src/productions/PrintStatement.js +++ b/src/productions/PrintStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -93,4 +76,4 @@ extend(PrintStatement, Production); * @const * @type {string} */ -PrintStatement.prototype.name="PrintStatement"; \ No newline at end of file +PrintStatement.prototype.name="PrintStatement"; diff --git a/src/productions/Production.js b/src/productions/Production.js index e83e7af..85f8c10 100644 --- a/src/productions/Production.js +++ b/src/productions/Production.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * @constructor */ @@ -39,4 +23,4 @@ Production.prototype.close=function(context){ /** * @type {string} */ -Production.prototype.name="Production"; \ No newline at end of file +Production.prototype.name="Production"; diff --git a/src/productions/ProductionContext.js b/src/productions/ProductionContext.js index 7337ee8..8a03062 100644 --- a/src/productions/ProductionContext.js +++ b/src/productions/ProductionContext.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @param {Output} output @@ -381,4 +364,4 @@ Have you supplied '"+filePath+"' to the compile method?"; } /** @type boolean */ -ProductionContext.prototype.isEscapeXSSOutput=false; \ No newline at end of file +ProductionContext.prototype.isEscapeXSSOutput=false; diff --git a/src/productions/Program.js b/src/productions/Program.js index 7e6f972..8b2bb6e 100644 --- a/src/productions/Program.js +++ b/src/productions/Program.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * Program is the entry point for all productions in the grammar. When importing * another file, Program is nested within other programs.

@@ -172,4 +155,4 @@ extend(Program, Production); * @const * @type {string} */ -Program.prototype.name="Program"; \ No newline at end of file +Program.prototype.name="Program"; diff --git a/src/productions/ProgramNamespace.js b/src/productions/ProgramNamespace.js index 7ca2404..a201282 100644 --- a/src/productions/ProgramNamespace.js +++ b/src/productions/ProgramNamespace.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * Handles: {namespace ...} * @@ -87,4 +70,4 @@ extend(ProgramNamespace, Production); * @const * @type {string} */ -ProgramNamespace.prototype.name="ProgramNamespace"; \ No newline at end of file +ProgramNamespace.prototype.name="ProgramNamespace"; diff --git a/src/productions/RenderExpression.js b/src/productions/RenderExpression.js index 7bdcf6f..3079b1b 100644 --- a/src/productions/RenderExpression.js +++ b/src/productions/RenderExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -70,4 +53,4 @@ extend(RenderExpression, Production); * @const * @type {string} */ -RenderExpression.prototype.name="RenderExpression"; \ No newline at end of file +RenderExpression.prototype.name="RenderExpression"; diff --git a/src/productions/RenderParamDeclaration.js b/src/productions/RenderParamDeclaration.js index aea40f5..722f64b 100644 --- a/src/productions/RenderParamDeclaration.js +++ b/src/productions/RenderParamDeclaration.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclaration} @@ -58,4 +41,4 @@ RenderParamDeclaration.prototype.doAssignment=function(name, output){}; */ RenderParamDeclaration.prototype.doNoAssignment=function(name, context){ throw "An assignment must be made here."; -}; \ No newline at end of file +}; diff --git a/src/productions/RenderParamDeclarations.js b/src/productions/RenderParamDeclarations.js index ebe7c0d..0572218 100644 --- a/src/productions/RenderParamDeclarations.js +++ b/src/productions/RenderParamDeclarations.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclarations} @@ -51,4 +34,4 @@ RenderParamDeclarations.prototype._characterAfterOpenCurly="p"; */ RenderParamDeclarations.prototype.getDeclarationRegex=function(){ return PARAM; -}; \ No newline at end of file +}; diff --git a/src/productions/RenderStatement.js b/src/productions/RenderStatement.js index bfb9df5..f3b301d 100644 --- a/src/productions/RenderStatement.js +++ b/src/productions/RenderStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractConditionBlock} @@ -69,4 +52,4 @@ RenderStatement.prototype.getClosingPattern=function(){ * @const * @type {string} */ -RenderStatement.prototype.name="RenderStatement"; \ No newline at end of file +RenderStatement.prototype.name="RenderStatement"; diff --git a/src/productions/SortStatement.js b/src/productions/SortStatement.js index d4ff5f4..ac41c04 100644 --- a/src/productions/SortStatement.js +++ b/src/productions/SortStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -148,4 +131,4 @@ extend(SortStatement, Production); * @const * @type {string} */ -SortStatement.prototype.name="SortStatement"; \ No newline at end of file +SortStatement.prototype.name="SortStatement"; diff --git a/src/productions/TemplateBody.js b/src/productions/TemplateBody.js index b7e466f..b21fc7a 100644 --- a/src/productions/TemplateBody.js +++ b/src/productions/TemplateBody.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * @constructor * @extends {Production} diff --git a/src/productions/TemplateBodyStatements.js b/src/productions/TemplateBodyStatements.js index 011fc83..c303918 100644 --- a/src/productions/TemplateBodyStatements.js +++ b/src/productions/TemplateBodyStatements.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -127,4 +110,4 @@ extend(TemplateBodyStatements, Production); * @const * @type {string} */ -TemplateBodyStatements.prototype.name="TemplateBodyStatements"; \ No newline at end of file +TemplateBodyStatements.prototype.name="TemplateBodyStatements"; diff --git a/src/productions/TemplateDeclaration.js b/src/productions/TemplateDeclaration.js index 240cd46..fd0b2ab 100644 --- a/src/productions/TemplateDeclaration.js +++ b/src/productions/TemplateDeclaration.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -123,4 +106,4 @@ extend(TemplateDeclaration, Production); * @const * @type string */ -TemplateDeclaration.prototype.name="TemplateDeclaration"; \ No newline at end of file +TemplateDeclaration.prototype.name="TemplateDeclaration"; diff --git a/src/productions/TextStatement.js b/src/productions/TextStatement.js index 4b969d7..3a06739 100644 --- a/src/productions/TextStatement.js +++ b/src/productions/TextStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -58,4 +41,4 @@ extend(TextStatement, Production); * @const * @type {string} */ -TextStatement.prototype.name="TextStatement"; \ No newline at end of file +TextStatement.prototype.name="TextStatement"; diff --git a/src/productions/VariableAssignment.js b/src/productions/VariableAssignment.js index 018d245..e7633cb 100644 --- a/src/productions/VariableAssignment.js +++ b/src/productions/VariableAssignment.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractAssignment} @@ -33,4 +16,4 @@ extend(VariableAssignment, AbstractAssignment); * @const * @type {string} */ -VariableAssignment.prototype.name="AbstractAssignment"; \ No newline at end of file +VariableAssignment.prototype.name="AbstractAssignment"; diff --git a/src/productions/VariableDeclaration.js b/src/productions/VariableDeclaration.js index 72e7a5d..ef63087 100644 --- a/src/productions/VariableDeclaration.js +++ b/src/productions/VariableDeclaration.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclaration} @@ -55,4 +38,4 @@ VariableDeclaration.prototype.getProduction=function(output){ * @param {string} name * @param {Output} output */ -VariableDeclaration.prototype.doAssignment=function(name, output){}; \ No newline at end of file +VariableDeclaration.prototype.doAssignment=function(name, output){}; diff --git a/src/productions/VariableDeclarations.js b/src/productions/VariableDeclarations.js index 24da461..6e4db91 100644 --- a/src/productions/VariableDeclarations.js +++ b/src/productions/VariableDeclarations.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractVariableDeclarations} @@ -38,4 +21,4 @@ VariableDeclarations.prototype._characterAfterOpenCurly="v"; */ VariableDeclarations.prototype.getDeclarationRegex=function(){ return VAR; -}; \ No newline at end of file +}; diff --git a/src/productions/VariableExpression.js b/src/productions/VariableExpression.js index 32336eb..9ff491b 100644 --- a/src/productions/VariableExpression.js +++ b/src/productions/VariableExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ /** * @constructor * @extends {AbstractExpression} diff --git a/src/productions/VariableParenthesizedExpression.js b/src/productions/VariableParenthesizedExpression.js index 206c341..d041038 100644 --- a/src/productions/VariableParenthesizedExpression.js +++ b/src/productions/VariableParenthesizedExpression.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {AbstractParenthesizedExpression} @@ -41,4 +24,4 @@ extend(VariableParenthesizedExpression, AbstractParenthesizedExpression); * @const * @type {string} */ -VariableParenthesizedExpression.prototype.name="VariableParenthesizedExpression"; \ No newline at end of file +VariableParenthesizedExpression.prototype.name="VariableParenthesizedExpression"; diff --git a/src/productions/VariableValue.js b/src/productions/VariableValue.js index 086dd13..3ae251e 100644 --- a/src/productions/VariableValue.js +++ b/src/productions/VariableValue.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * @constructor * @extends {Production} @@ -144,4 +127,4 @@ extend(VariableValue, Production); * @const * @type {string} */ -VariableValue.prototype.name="VariableValue"; \ No newline at end of file +VariableValue.prototype.name="VariableValue"; diff --git a/test/integrations/compiling/test_compile_errors.js b/test/integrations/compiling/test_compile_errors.js index 1c7f11a..5429f06 100644 --- a/test/integrations/compiling/test_compile_errors.js +++ b/test/integrations/compiling/test_compile_errors.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("compile_errors", function(){ var precompiledHappy = fs.readdirSync("templates/raw/test_compile_errors/"); precompiledHappy.forEach(function(file){ @@ -26,4 +10,4 @@ test("compile_errors", function(){ }, "The following file doesn't not compile: "+file); } }); -}, true); \ No newline at end of file +}, true); diff --git a/test/integrations/compiling/test_documentation.js b/test/integrations/compiling/test_documentation.js index ab80aeb..8131b6f 100644 --- a/test/integrations/compiling/test_documentation.js +++ b/test/integrations/compiling/test_documentation.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("documentation", function(){ var basedir = "templates/raw/documentation/"; var precompiledHappy = fs.readdirSync(basedir); @@ -28,4 +12,4 @@ test("documentation", function(){ } } }); -}); \ No newline at end of file +}); diff --git a/test/integrations/compiling/test_no_compile_errors.js b/test/integrations/compiling/test_no_compile_errors.js index 5af4deb..7b60e80 100644 --- a/test/integrations/compiling/test_no_compile_errors.js +++ b/test/integrations/compiling/test_no_compile_errors.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("no_compile_errors", function(){ compileTemplateFilesIn("templates/raw/test_no_compile_errors/"); compileTemplateFilesIn("templates/raw/documentation/"); @@ -32,4 +16,4 @@ test("no_compile_errors", function(){ } }); } -}); \ No newline at end of file +}); diff --git a/test/integrations/framework/test_XforJS.js b/test/integrations/framework/test_XforJS.js index 50c3292..11a5c68 100644 --- a/test/integrations/framework/test_XforJS.js +++ b/test/integrations/framework/test_XforJS.js @@ -1,21 +1,5 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ !function(){ var compiler = XforJS.getCompiler({removelogs:true}); assert(compiler instanceof Compiler, "getCompiler returns an instance of Compiler."); assert(compiler.configuration.removelogs, "getCompiler passes args successfully."); -}(); \ No newline at end of file +}(); diff --git a/test/integrations/testing_output/test_calling.js b/test/integrations/testing_output/test_calling.js index d29752e..9ce406a 100644 --- a/test/integrations/testing_output/test_calling.js +++ b/test/integrations/testing_output/test_calling.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("calling within a template", function(){ var fs = require('fs'); var compiler = XforJS.getCompiler({removelogs:false}); @@ -31,4 +16,4 @@ test("calling within a template", function(){ eval(template); assert.equal(foo.foo({},params), "foo"); assert.equal(foo.doo({},params), "doo"); -}); \ No newline at end of file +}); diff --git a/test/integrations/testing_output/test_context_selector.js b/test/integrations/testing_output/test_context_selector.js index 38e059b..629b15f 100644 --- a/test/integrations/testing_output/test_context_selector.js +++ b/test/integrations/testing_output/test_context_selector.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("context selector", function(){ var fs = require('fs'); var compiler; @@ -52,4 +37,4 @@ test("context selector", function(){ }, true); -},true); \ No newline at end of file +},true); diff --git a/test/integrations/testing_output/test_input_tokens.js b/test/integrations/testing_output/test_input_tokens.js index 14422d9..5e8f60a 100644 --- a/test/integrations/testing_output/test_input_tokens.js +++ b/test/integrations/testing_output/test_input_tokens.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("input tokens", function(){ var fs = require('fs'); var compiler; @@ -32,4 +17,4 @@ test("input tokens", function(){ ); }, true); -},true); \ No newline at end of file +},true); diff --git a/test/integrations/testing_output/test_misc.js b/test/integrations/testing_output/test_misc.js index 081dc7a..208f1c1 100644 --- a/test/integrations/testing_output/test_misc.js +++ b/test/integrations/testing_output/test_misc.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("misc output tests", function(){ var fs = require('fs'); var compiler = XforJS.getCompiler(); @@ -22,4 +7,4 @@ test("misc output tests", function(){ eval(template); assert.equal(testspace.newlines(),"\n test\n \n "); },true); -},true); \ No newline at end of file +},true); diff --git a/test/integrations/testing_output/test_print_modifiers.js b/test/integrations/testing_output/test_print_modifiers.js index ad1dd0b..dc6c179 100644 --- a/test/integrations/testing_output/test_print_modifiers.js +++ b/test/integrations/testing_output/test_print_modifiers.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("print modifiers", function(){ var fs = require('fs'); var compiler; @@ -54,4 +39,4 @@ test("print modifiers", function(){ ); }, true); -},true); \ No newline at end of file +},true); diff --git a/test/integrations/testing_output/test_print_statement.js b/test/integrations/testing_output/test_print_statement.js index 34bf9c4..5f1185c 100644 --- a/test/integrations/testing_output/test_print_statement.js +++ b/test/integrations/testing_output/test_print_statement.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("print statement", function(){ var fs = require('fs'); var compiler; @@ -32,4 +17,4 @@ test("print statement", function(){ ); }, true); -},true); \ No newline at end of file +},true); diff --git a/test/integrations/testing_output/test_sorting.js b/test/integrations/testing_output/test_sorting.js index 8fffbd4..411603c 100644 --- a/test/integrations/testing_output/test_sorting.js +++ b/test/integrations/testing_output/test_sorting.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("sorting", function(){ var sortXJS = fs.readFileSync('templates/raw/test_no_compile_errors/sorting.xjs', 'utf8'); var compiler = XforJS.getCompiler(); @@ -91,4 +75,4 @@ test("sorting", function(){ "a" ]); } -}, true); \ No newline at end of file +}, true); diff --git a/test/units/compiling/test_CallManager.js b/test/units/compiling/test_CallManager.js index be657c6..46b2e17 100644 --- a/test/units/compiling/test_CallManager.js +++ b/test/units/compiling/test_CallManager.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("CallManager",function(){ var manager = new CallManager(); var instance; diff --git a/test/units/compiling/test_Compiler.js b/test/units/compiling/test_Compiler.js index f93974e..1ff69c0 100644 --- a/test/units/compiling/test_Compiler.js +++ b/test/units/compiling/test_Compiler.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("Compiler",function(){ var compiler = new Compiler({removelogs:true, invalidConfigItem:"boo"}); @@ -27,4 +11,4 @@ assert['throws'](function(){ assert(compiler.compile("{namespace misc}{template wow}{/template}").indexOf(js_StringBuffer) > -1, "compile works."); assert.equal(compiler.configuration.removelogs, true, "setting configuration works."); -}); \ No newline at end of file +}); diff --git a/test/units/javascript/test_GetLibrary.js b/test/units/javascript/test_GetLibrary.js index dfc6e4c..29931c2 100644 --- a/test/units/javascript/test_GetLibrary.js +++ b/test/units/javascript/test_GetLibrary.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GetLibrary", function(){ assert.doesNotThrow(function(){ eval(GetLibrary()); @@ -37,4 +21,4 @@ test("GetLibrary", function(){ obj[js_SafeValue] && obj[js_StringBuffer]; } -}); \ No newline at end of file +}); diff --git a/test/units/javascript/test_StringBuffer.js b/test/units/javascript/test_StringBuffer.js index 8544c89..5dc6833 100644 --- a/test/units/javascript/test_StringBuffer.js +++ b/test/units/javascript/test_StringBuffer.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("StringBuffer", function(){ var SB = StringBuffer(); SB(5); @@ -27,4 +11,4 @@ test("StringBuffer", function(){ SB(function(){return "waa";}); assert(SB.s() === '56waa', "functions may return values."); -}); \ No newline at end of file +}); diff --git a/test/units/javascript/test_each.js b/test/units/javascript/test_each.js index 240e75e..4b3b145 100644 --- a/test/units/javascript/test_each.js +++ b/test/units/javascript/test_each.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * Sorting can sometimes produce random results. The expected values herein in * some cases were simply taken from what the actual result was. @@ -29,4 +12,4 @@ test("each", function(){ result = result + "," + value + index + count + name; }); assert.equal(",4140,3241,2342,1443", result); -}); \ No newline at end of file +}); diff --git a/test/units/javascript/test_getSafeArray.js b/test/units/javascript/test_getSafeArray.js index b6c69b6..7a19c2e 100644 --- a/test/units/javascript/test_getSafeArray.js +++ b/test/units/javascript/test_getSafeArray.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * Sorting can sometimes produce random results. The expected values herein in * some cases were simply taken from what the actual result was. @@ -28,4 +11,4 @@ test("getSafeArray", function(){ assert.equal(1, array[0].c); assert.equal("E", array[testArray.length - 1].c); -}); \ No newline at end of file +}); diff --git a/test/units/javascript/test_sortSafeArray.js b/test/units/javascript/test_sortSafeArray.js index 3afa933..cf0116d 100644 --- a/test/units/javascript/test_sortSafeArray.js +++ b/test/units/javascript/test_sortSafeArray.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /** * Sorting can sometimes produce random results. The expected values herein in * some cases were simply taken from what the actual result was. @@ -160,4 +143,4 @@ test("sortSafeArray", function(){ console.log("A:"+e.actual+" E:"+e.expected+" M:"+e.message); } } -}); \ No newline at end of file +}); diff --git a/test/units/misc/test_Globals.js b/test/units/misc/test_Globals.js index f42c566..a6e57d6 100644 --- a/test/units/misc/test_Globals.js +++ b/test/units/misc/test_Globals.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("Globals", function(){ //REGEX //SEQUENCES @@ -515,4 +499,4 @@ test("Globals", function(){ var a="\\{\\#\\#\\{\r\n\\#\r\r\n"; assert.equal("{##{\\\n\\\n#\\\n\\\n\\\n", escapeOutput(a), "escapeOutput is working."); }(); -}, true); \ No newline at end of file +}, true); diff --git a/test/units/misc/test_extend.js b/test/units/misc/test_extend.js index 94daad4..aec676b 100644 --- a/test/units/misc/test_extend.js +++ b/test/units/misc/test_extend.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("extend", function(){ function Dog(){} function Mamal(){} @@ -22,4 +6,4 @@ test("extend", function(){ var a=new Dog(); assert(a instanceof Dog, "extend maintains original constructor."); assert(a instanceof Mamal, "extend allows another object to appear in the prototype chain."); -}); \ No newline at end of file +}); diff --git a/test/units/output/test_AbstractVariableOutput.js b/test/units/output/test_AbstractVariableOutput.js index d6a1cd0..23b2b9d 100644 --- a/test/units/output/test_AbstractVariableOutput.js +++ b/test/units/output/test_AbstractVariableOutput.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("AbstractVariableOutput", function(){ var variableOutput = AbstractVariableOutput.getVariableOutput(); var variableOutput2 = AbstractVariableOutput.getVariableOutput(variableOutput); @@ -66,4 +50,4 @@ assert(variableOutput2.hasVariableBeenDeclared(("asd")), variableOutput2.add("hello", "there"); assert.equal(variableOutput2.toString(), "var __hello=there;", "toString working for child scope."); -}); \ No newline at end of file +}); diff --git a/test/units/output/test_JSArgumentsWrapper.js b/test/units/output/test_JSArgumentsWrapper.js index 096c5dd..0297ba0 100644 --- a/test/units/output/test_JSArgumentsWrapper.js +++ b/test/units/output/test_JSArgumentsWrapper.js @@ -1,23 +1,7 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("JSArgumentsWrapper", function(){ var params = new JSParameters(); var wrapper = new JSArgumentsWrapper(params); params.put("dog","charlie"); assert.equal("charlie", wrapper.toString(), "toString is working."); -}); \ No newline at end of file +}); diff --git a/test/units/output/test_JSParameters.js b/test/units/output/test_JSParameters.js index d022131..7e4e484 100644 --- a/test/units/output/test_JSParameters.js +++ b/test/units/output/test_JSParameters.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("JSParameters", function(){ var params = new JSParameters(); @@ -29,4 +13,4 @@ assert.equal("hello,charlie", params.getArguments(), "getArguments is working.") params.put("dog","chancey"); assert.equal("hello,charlie", params.getArguments(), "changing a value isn't accepted."); -}); \ No newline at end of file +}); diff --git a/test/units/output/test_JSParametersWrapper.js b/test/units/output/test_JSParametersWrapper.js index c8d00f8..b43db58 100644 --- a/test/units/output/test_JSParametersWrapper.js +++ b/test/units/output/test_JSParametersWrapper.js @@ -1,23 +1,7 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("JSParametersWrapper", function(){ var params = new JSParameters(); var wrapper = new JSParametersWrapper(params); params.put("dog","charlie"); assert.equal("dog", wrapper.toString(), "toString is working."); -}); \ No newline at end of file +}); diff --git a/test/units/output/test_JavascriptBuilder.js b/test/units/output/test_JavascriptBuilder.js index 7ce30e7..58a2a44 100644 --- a/test/units/output/test_JavascriptBuilder.js +++ b/test/units/output/test_JavascriptBuilder.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("JavascriptBuilder", function(){ var instance; @@ -34,4 +18,4 @@ instance = new JavascriptBuilder({}); assert(instance.getJSCount().indexOf("function") > -1, "useexternal falsy returns full contents of js fragment."); -}); \ No newline at end of file +}); diff --git a/test/units/output/test_Output.js b/test/units/output/test_Output.js index 7486eee..283dac9 100644 --- a/test/units/output/test_Output.js +++ b/test/units/output/test_Output.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("Output", function(){ var output1 = new Output; var output2 = new Output; @@ -33,4 +17,4 @@ output1.append("8"); output1.add("7"); output1.append("3"); assert.equal("465783", output1.toString()); -}, true); \ No newline at end of file +}, true); diff --git a/test/units/parsing/test_CharWrapper.js b/test/units/parsing/test_CharWrapper.js index f95e3dd..a7a06c4 100644 --- a/test/units/parsing/test_CharWrapper.js +++ b/test/units/parsing/test_CharWrapper.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("CharWrapper", function(){ /** @type {CharWrapper} */ var wrapper; @@ -86,4 +70,4 @@ test("CharWrapper", function(){ function setEnv(str){ wrapper = new CharWrapper(str); } -}, true); \ No newline at end of file +}, true); diff --git a/test/units/productions/test_AbstractAssignment.js b/test/units/productions/test_AbstractAssignment.js index 8ad3977..c596112 100644 --- a/test/units/productions/test_AbstractAssignment.js +++ b/test/units/productions/test_AbstractAssignment.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("AbstractAssignment", function(){ var getExpressionCalled=false; var addProductionCalled=false; @@ -37,4 +21,4 @@ production.execute(null, {removeProduction:function(){ assert(removeProductionCalled, "second execution is working."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_AbstractConditionBlock.js b/test/units/productions/test_AbstractConditionBlock.js index 685d176..0b221a4 100644 --- a/test/units/productions/test_AbstractConditionBlock.js +++ b/test/units/productions/test_AbstractConditionBlock.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("AbstractConditionBlock", function(){ var compiler=new Compiler(); var output; @@ -89,4 +73,4 @@ test("AbstractConditionBlock", function(){ return /^(\{\/if\})/; }; } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_AbstractExpression.js b/test/units/productions/test_AbstractExpression.js index a9c6673..fc2e2d8 100644 --- a/test/units/productions/test_AbstractExpression.js +++ b/test/units/productions/test_AbstractExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("AbstractExpression", function(){ var getValueCalled; var getParentesizedExpressionCalled; @@ -84,4 +68,4 @@ function setEnv(str){ }; context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_AbstractParenthesizedExpression.js b/test/units/productions/test_AbstractParenthesizedExpression.js index 91f06c5..d8dc0d6 100644 --- a/test/units/productions/test_AbstractParenthesizedExpression.js +++ b/test/units/productions/test_AbstractParenthesizedExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("AbstractParenthesizedExpression", function(){ var output; var context; @@ -66,4 +50,4 @@ test("AbstractParenthesizedExpression", function(){ }; context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_AbstractVariableDeclaration.js b/test/units/productions/test_AbstractVariableDeclaration.js index b3e1b4b..10bf7a8 100644 --- a/test/units/productions/test_AbstractVariableDeclaration.js +++ b/test/units/productions/test_AbstractVariableDeclaration.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("AbstractVariableDeclaration", function(){ var output; var variableOutput; @@ -87,4 +71,4 @@ function setEnv(){ context = new ProductionContext(output, compiler); context.addProduction(newProduction).addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_AbstractVariableDeclarations.js b/test/units/productions/test_AbstractVariableDeclarations.js index f62f6f5..f329d5a 100644 --- a/test/units/productions/test_AbstractVariableDeclarations.js +++ b/test/units/productions/test_AbstractVariableDeclarations.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - test("AbstractVaraibleDeclarations", function(){ var getDeclarationRegexCalled=false; var getDeclarationCalled=false; @@ -48,4 +31,4 @@ test("AbstractVaraibleDeclarations", function(){ !(context.getCurrentProduction() instanceof AbstractVariableDeclarations), "closes properly." ); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_CallArguments.js b/test/units/productions/test_CallArguments.js index 3bbf3bb..6de2580 100644 --- a/test/units/productions/test_CallArguments.js +++ b/test/units/productions/test_CallArguments.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("CallArguments", function(){ var output; var compiler=new Compiler(); @@ -77,4 +62,4 @@ test("CallArguments", function(){ production = new CallArguments(output); context.addProduction(production); } -}, true); \ No newline at end of file +}, true); diff --git a/test/units/productions/test_CallExpression.js b/test/units/productions/test_CallExpression.js index a7dd845..7e96255 100644 --- a/test/units/productions/test_CallExpression.js +++ b/test/units/productions/test_CallExpression.js @@ -1,18 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ test("CallExpression", function(){ var output; var compiler=new Compiler(); diff --git a/test/units/productions/test_ContextDynamicRefinement.js b/test/units/productions/test_ContextDynamicRefinement.js index 3fa1974..e14da12 100644 --- a/test/units/productions/test_ContextDynamicRefinement.js +++ b/test/units/productions/test_ContextDynamicRefinement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ContextDynamicRefinement", function(){ var compiler = new Compiler(); var output; @@ -55,4 +39,4 @@ test("ContextDynamicRefinement", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ContextExpression.js b/test/units/productions/test_ContextExpression.js index fd87713..d9cf769 100644 --- a/test/units/productions/test_ContextExpression.js +++ b/test/units/productions/test_ContextExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ContextExpression", function(){ var output; var compiler = new Compiler(); @@ -37,4 +21,4 @@ test("ContextExpression", function(){ production = new ContextExpression(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ContextParenthesizedExpression.js b/test/units/productions/test_ContextParenthesizedExpression.js index cc8c443..e2f2b27 100644 --- a/test/units/productions/test_ContextParenthesizedExpression.js +++ b/test/units/productions/test_ContextParenthesizedExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ContextParenthesizedExpression", function(){ var output; var compiler=new Compiler(); @@ -36,4 +20,4 @@ test("ContextParenthesizedExpression", function(){ production = new ContextParenthesizedExpression(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ContextSelector.js b/test/units/productions/test_ContextSelector.js index ded27a0..43362cf 100644 --- a/test/units/productions/test_ContextSelector.js +++ b/test/units/productions/test_ContextSelector.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ContextSelector", function(){ var compiler=new Compiler(); var output; @@ -222,4 +206,4 @@ test("ContextSelector", function(){ characters=new CharWrapper(string); variableOutput = context.getCurrentVariableOutput(); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ForeachBodyStatements.js b/test/units/productions/test_ForeachBodyStatements.js index f47c3b0..5f66dfe 100644 --- a/test/units/productions/test_ForeachBodyStatements.js +++ b/test/units/productions/test_ForeachBodyStatements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ForeachBodyStatements", function(){ var compiler=new Compiler(); var output; @@ -95,4 +79,4 @@ test("ForeachBodyStatements", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ForeachStatement.js b/test/units/productions/test_ForeachStatement.js index 84cdea2..7799e31 100644 --- a/test/units/productions/test_ForeachStatement.js +++ b/test/units/productions/test_ForeachStatement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ForeachStatement", function(){ var output = new Output(); var context = new ProductionContext(output, new Compiler()); @@ -40,4 +24,4 @@ test("ForeachStatement", function(){ "getVariableExpression is working."); assert(production.getClosingPattern() === FOREACH_CLOSING, "getClosingPattern is working."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalExpression.js b/test/units/productions/test_GlobalExpression.js index 17cfbc1..f94d57f 100644 --- a/test/units/productions/test_GlobalExpression.js +++ b/test/units/productions/test_GlobalExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalExpression", function(){ var output; var compiler = new Compiler(); @@ -37,4 +21,4 @@ test("GlobalExpression", function(){ production = new GlobalExpression(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalParenthesizedExpression.js b/test/units/productions/test_GlobalParenthesizedExpression.js index 4be782b..6cc0f36 100644 --- a/test/units/productions/test_GlobalParenthesizedExpression.js +++ b/test/units/productions/test_GlobalParenthesizedExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalParenthesizedExpression", function(){ var output; var compiler=new Compiler(); @@ -36,4 +20,4 @@ test("GlobalParenthesizedExpression", function(){ production = new GlobalParenthesizedExpression(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalStatements.js b/test/units/productions/test_GlobalStatements.js index e5147eb..a8ab8a6 100644 --- a/test/units/productions/test_GlobalStatements.js +++ b/test/units/productions/test_GlobalStatements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalStatements", function(){ var output = new Output(); var compiler = new Compiler(); @@ -48,4 +32,4 @@ assert.doesNotThrow(function(){ }, "space only doesn't throw an error."); assert(!context.getCurrentProduction(), "GlobalStatements removes itself when no more characters are left."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalVariableAssignment.js b/test/units/productions/test_GlobalVariableAssignment.js index 0688b13..71a7b0c 100644 --- a/test/units/productions/test_GlobalVariableAssignment.js +++ b/test/units/productions/test_GlobalVariableAssignment.js @@ -1,21 +1,5 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalVariableAssignment", function(){ var production = new GlobalVariableAssignment(); assert(production.getExpression() instanceof GlobalExpression, "getExpression is working."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalVariableDeclaration.js b/test/units/productions/test_GlobalVariableDeclaration.js index 6ae79d8..f3517df 100644 --- a/test/units/productions/test_GlobalVariableDeclaration.js +++ b/test/units/productions/test_GlobalVariableDeclaration.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalVariableDeclaration", function(){ var compiler=new Compiler(); var output; @@ -69,4 +53,4 @@ function setEnv(){ }; context.addProduction(gvd); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalVariableDeclarations.js b/test/units/productions/test_GlobalVariableDeclarations.js index 5a6c052..a726165 100644 --- a/test/units/productions/test_GlobalVariableDeclarations.js +++ b/test/units/productions/test_GlobalVariableDeclarations.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalVariableDeclarations", function(){ var output = new Output(); var compiler = new Compiler(); @@ -39,4 +23,4 @@ context.executeCurrent(characters); assert.equal(characters.charAt(0), "{", "space is removed from the beginning."); assert.equal(context.getCurrentProduction(), production, "productions are properly removed."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_GlobalVariableValue.js b/test/units/productions/test_GlobalVariableValue.js index 9a43966..823c2a3 100644 --- a/test/units/productions/test_GlobalVariableValue.js +++ b/test/units/productions/test_GlobalVariableValue.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("GlobalVariableValue", function(){ var compiler=new Compiler(); var output; @@ -70,4 +54,4 @@ test("GlobalVariableValue", function(){ production = new GlobalVariableValue(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_IfStatement.js b/test/units/productions/test_IfStatement.js index 589159d..3d28aba 100644 --- a/test/units/productions/test_IfStatement.js +++ b/test/units/productions/test_IfStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - test("IfStatement", function(){ var compiler = new Compiler(); var output; @@ -88,4 +71,4 @@ test("IfStatement", function(){ context = new ProductionContext(output, compiler); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ImportStatement.js b/test/units/productions/test_ImportStatement.js index 05f6e62..f2facb7 100644 --- a/test/units/productions/test_ImportStatement.js +++ b/test/units/productions/test_ImportStatement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ImportStatement", function(){ var compiler = new Compiler(); var output=new Output(); @@ -45,4 +29,4 @@ test("ImportStatement", function(){ characters.charAt(0); }, "Import removes itself."); assert.equal(context.getCurrentProduction(), production, "ImportStatement removes itself."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ImportStatements.js b/test/units/productions/test_ImportStatements.js index da3912b..9f4de11 100644 --- a/test/units/productions/test_ImportStatements.js +++ b/test/units/productions/test_ImportStatements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ImportStatements", function(){ var compiler = new Compiler(); var output = new Output(); @@ -42,4 +26,4 @@ context.removeProduction(); characters=new CharWrapper(" {t"); context.executeCurrent(characters); assert.equal(context.getCurrentProduction(), production, "ImportStatements is properly removed."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_InputTokens.js b/test/units/productions/test_InputTokens.js index 85a8baf..112de34 100644 --- a/test/units/productions/test_InputTokens.js +++ b/test/units/productions/test_InputTokens.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("InputTokens", function(){ var compiler; var output; @@ -96,4 +80,4 @@ test("InputTokens", function(){ characters = new CharWrapper(string); context.addProduction(production); } -}, true); \ No newline at end of file +}, true); diff --git a/test/units/productions/test_LogStatement.js b/test/units/productions/test_LogStatement.js index 4fc0ebd..9741512 100644 --- a/test/units/productions/test_LogStatement.js +++ b/test/units/productions/test_LogStatement.js @@ -1,20 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - test("LogStatement", function(){ var compiler; var output; @@ -61,4 +44,4 @@ test("LogStatement", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_Operator.js b/test/units/productions/test_Operator.js index 38e0fa2..50bd59a 100644 --- a/test/units/productions/test_Operator.js +++ b/test/units/productions/test_Operator.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("Operator", function(){ var output; var compiler=new Compiler(); @@ -66,4 +50,4 @@ test("Operator", function(){ production = new Operator(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ParamDeclaration.js b/test/units/productions/test_ParamDeclaration.js index 9191c10..0ffff21 100644 --- a/test/units/productions/test_ParamDeclaration.js +++ b/test/units/productions/test_ParamDeclaration.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ParamDeclaration", function(){ var compiler=new Compiler(); var output; @@ -66,4 +50,4 @@ test("ParamDeclaration", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ParamDeclarations.js b/test/units/productions/test_ParamDeclarations.js index 30a1a29..927a1ca 100644 --- a/test/units/productions/test_ParamDeclarations.js +++ b/test/units/productions/test_ParamDeclarations.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ParamDeclarations", function(){ var output = new Output(); var compiler = new Compiler(); @@ -25,4 +9,4 @@ test("ParamDeclarations", function(){ assert(context.getCurrentProduction() instanceof ParamDeclaration, "ParamDeclaration is instantiated." ); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_PrintStatement.js b/test/units/productions/test_PrintStatement.js index 8dd76df..c60744e 100644 --- a/test/units/productions/test_PrintStatement.js +++ b/test/units/productions/test_PrintStatement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("PrintStatement", function(){ var compiler; var output; @@ -72,4 +56,4 @@ test("PrintStatement", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}, true); \ No newline at end of file +}, true); diff --git a/test/units/productions/test_Production.js b/test/units/productions/test_Production.js index 425ae01..eee84b8 100644 --- a/test/units/productions/test_Production.js +++ b/test/units/productions/test_Production.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("Production", function(){ function Sample(){} extend(Sample, Production); @@ -33,4 +17,4 @@ test("Production", function(){ assert['throws'](function(){ sampleProduction.continueBlock(); }, "continueBlock throws an error by default."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ProductionContext.js b/test/units/productions/test_ProductionContext.js index 5075ee7..bf06c9d 100644 --- a/test/units/productions/test_ProductionContext.js +++ b/test/units/productions/test_ProductionContext.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ProductionContext", function(){ test("constructing",function(){ var output=new Output(); @@ -309,4 +293,4 @@ test("ProductionContext", function(){ && closeArguments[2] === context, "close is working."); }); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_Program.js b/test/units/productions/test_Program.js index 0abf6d4..80ac4d6 100644 --- a/test/units/productions/test_Program.js +++ b/test/units/productions/test_Program.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("Program", function(){ //set by setEnv var output; @@ -135,4 +119,4 @@ assert['throws'](function(){ program.execute(new CharWrapper("{namespace boo}")); program.close(); }, "closing without global statements throws errors."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_ProgramNamespace.js b/test/units/productions/test_ProgramNamespace.js index d1d811d..26430d9 100644 --- a/test/units/productions/test_ProgramNamespace.js +++ b/test/units/productions/test_ProgramNamespace.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("ProgramNamespace", function(){ var output = new Output(); var programNamespace = new ProgramNamespace(output); @@ -61,4 +45,4 @@ function test_ProgramNamespace_setupContext(){ context = new ProductionContext(output, compiler); context.addProduction(new Production()); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_RenderExpression.js b/test/units/productions/test_RenderExpression.js index 97d698c..0d2bb2a 100644 --- a/test/units/productions/test_RenderExpression.js +++ b/test/units/productions/test_RenderExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("RenderExpression", function(){ var compiler=new Compiler(); var output; @@ -79,4 +63,4 @@ test("RenderExpression", function(){ context.addProduction(production); context.setNS("testing"); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_RenderParamDeclaration.js b/test/units/productions/test_RenderParamDeclaration.js index 354e663..73485c8 100644 --- a/test/units/productions/test_RenderParamDeclaration.js +++ b/test/units/productions/test_RenderParamDeclaration.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("RenderParamDeclaration", function(){ var compiler=new Compiler(); var output; @@ -57,4 +41,4 @@ test("RenderParamDeclaration", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_RenderParamDeclarations.js b/test/units/productions/test_RenderParamDeclarations.js index 13cb3aa..3da7a8b 100644 --- a/test/units/productions/test_RenderParamDeclarations.js +++ b/test/units/productions/test_RenderParamDeclarations.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("RenderParamDeclarations", function(){ var output = new Output(); var compiler = new Compiler(); @@ -28,4 +12,4 @@ test("RenderParamDeclarations", function(){ production.getVariableOutput().add("boo", "'5'"); assert(production.getVariableOutput().toString().indexOf(",{boo:'5'}") > -1, "output is working."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_RenderStatement.js b/test/units/productions/test_RenderStatement.js index 94b6454..33677d6 100644 --- a/test/units/productions/test_RenderStatement.js +++ b/test/units/productions/test_RenderStatement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("RenderStatement", function(){ var output = new Output(); var production = new RenderStatement(output); @@ -28,4 +12,4 @@ test("RenderStatement", function(){ "getClosingPattern is working."); assert(production._canSelfClose, "RenderStatement can self close."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_SortStatement.js b/test/units/productions/test_SortStatement.js index 3103226..596a91e 100644 --- a/test/units/productions/test_SortStatement.js +++ b/test/units/productions/test_SortStatement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("SortStatement", function(){ var compiler=new Compiler(); var output; @@ -147,4 +131,4 @@ test("SortStatement", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_TemplateBody.js b/test/units/productions/test_TemplateBody.js index b3bc20e..e8d7740 100644 --- a/test/units/productions/test_TemplateBody.js +++ b/test/units/productions/test_TemplateBody.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("TemplateBody", function(){ var output = new Output(); var compiler = new Compiler(); @@ -34,4 +18,4 @@ test("TemplateBody", function(){ !(context.getCurrentProduction() instanceof TemplateBody), "body removed." ); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_TemplateBodyStatements.js b/test/units/productions/test_TemplateBodyStatements.js index c8f21e4..94246c3 100644 --- a/test/units/productions/test_TemplateBodyStatements.js +++ b/test/units/productions/test_TemplateBodyStatements.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("TemplateBodyStatements", function(){ var compiler=new Compiler(); var output; @@ -105,4 +89,4 @@ test("TemplateBodyStatements", function(){ addProduction(priorProduction). addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_TemplateDeclaration.js b/test/units/productions/test_TemplateDeclaration.js index 9ac69e5..1950279 100644 --- a/test/units/productions/test_TemplateDeclaration.js +++ b/test/units/productions/test_TemplateDeclaration.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("TemplateDeclaration", function(){ var output; var compiler=new Compiler(); @@ -120,4 +104,4 @@ test("TemplateDeclaration", function(){ production = new TemplateDeclaration(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_TextStatement.js b/test/units/productions/test_TextStatement.js index 9f90c9f..82f9e94 100644 --- a/test/units/productions/test_TextStatement.js +++ b/test/units/productions/test_TextStatement.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("TextStatement", function(){ var compiler=new Compiler(); var output; @@ -57,4 +41,4 @@ test("TextStatement", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_VariableAssignment.js b/test/units/productions/test_VariableAssignment.js index f21a3a9..6d87553 100644 --- a/test/units/productions/test_VariableAssignment.js +++ b/test/units/productions/test_VariableAssignment.js @@ -1,21 +1,5 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("VariableAssignment", function(){ var production = new VariableAssignment(); assert(production.getExpression() instanceof VariableExpression, "getExpression is working."); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_VariableDeclaration.js b/test/units/productions/test_VariableDeclaration.js index a14eace..75588e1 100644 --- a/test/units/productions/test_VariableDeclaration.js +++ b/test/units/productions/test_VariableDeclaration.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("VariableDeclaration", function(){ var compiler=new Compiler(); var output; @@ -66,4 +50,4 @@ test("VariableDeclaration", function(){ characters=new CharWrapper(string); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_VariableDeclarations.js b/test/units/productions/test_VariableDeclarations.js index 0d7c01b..0c3efc5 100644 --- a/test/units/productions/test_VariableDeclarations.js +++ b/test/units/productions/test_VariableDeclarations.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("VariableDeclaration", function(){ var output = new Output(); var compiler = new Compiler(); @@ -25,4 +9,4 @@ test("VariableDeclaration", function(){ assert(context.getCurrentProduction() instanceof VariableDeclaration, "VariableDeclaration is instantiated." ); -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_VariableExpression.js b/test/units/productions/test_VariableExpression.js index 3cd2436..48dc0da 100644 --- a/test/units/productions/test_VariableExpression.js +++ b/test/units/productions/test_VariableExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("VariableExpression", function(){ var output; var compiler = new Compiler(); @@ -37,4 +21,4 @@ test("VariableExpression", function(){ production = new VariableExpression(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_VariableParenthesizedExpression.js b/test/units/productions/test_VariableParenthesizedExpression.js index d89924f..c02e3a2 100644 --- a/test/units/productions/test_VariableParenthesizedExpression.js +++ b/test/units/productions/test_VariableParenthesizedExpression.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("VariableParenthesizedExpression", function(){ var output; var compiler=new Compiler(); @@ -36,4 +20,4 @@ test("VariableParenthesizedExpression", function(){ production = new VariableParenthesizedExpression(output); context.addProduction(production); } -}); \ No newline at end of file +}); diff --git a/test/units/productions/test_VariableValue.js b/test/units/productions/test_VariableValue.js index 25aef46..08ed8b5 100644 --- a/test/units/productions/test_VariableValue.js +++ b/test/units/productions/test_VariableValue.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2012 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("VariableValue", function(){ var compiler = new Compiler(); var output; @@ -126,4 +110,4 @@ test("VariableValue", function(){ context.addProduction(production); variableOutput=context.getCurrentVariableOutput(); } -}, true); \ No newline at end of file +}, true); diff --git a/test/units/test_XforJS.js b/test/units/test_XforJS.js index 8aef49f..fedec88 100644 --- a/test/units/test_XforJS.js +++ b/test/units/test_XforJS.js @@ -1,19 +1,3 @@ -/*! - * Copyright 2013 Joseph Spencer. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ test("XforJS", function(){ var fs = require('fs'); var testFileName = +new Date()+"XforJS"; @@ -44,4 +28,4 @@ test("XforJS", function(){ }, "When XforJS.server is true, and require isn't defined (as it would be\ in a browser, an error is thrown."); require=oldRequire; -}); \ No newline at end of file +}, true);