LCOV - code coverage report
Current view: top level - as2js/lib - compiler.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 17 5.9 %
Date: 2014-08-10 Functions: 2 8 25.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* compiler.cpp -- written by Alexis WILKE for Made to Order Software Corp. (c) 2005-2014 */
       2             : 
       3             : /*
       4             : 
       5             : Copyright (c) 2005-2014 Made to Order Software Corp.
       6             : 
       7             : http://snapwebsites.org/project/as2js
       8             : 
       9             : Permission is hereby granted, free of charge, to any
      10             : person obtaining a copy of this software and
      11             : associated documentation files (the "Software"), to
      12             : deal in the Software without restriction, including
      13             : without limitation the rights to use, copy, modify,
      14             : merge, publish, distribute, sublicense, and/or sell
      15             : copies of the Software, and to permit persons to whom
      16             : the Software is furnished to do so, subject to the
      17             : following conditions:
      18             : 
      19             : The above copyright notice and this permission notice
      20             : shall be included in all copies or substantial
      21             : portions of the Software.
      22             : 
      23             : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
      24             : ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
      25             : LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
      26             : FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
      27             : EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
      28             : LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
      29             : WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
      30             : ARISING FROM, OUT OF OR IN CONNECTION WITH THE
      31             : SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      32             : SOFTWARE.
      33             : 
      34             : */
      35             : 
      36             : #include    "as2js/compiler.h"
      37             : 
      38             : 
      39             : namespace as2js
      40             : {
      41             : 
      42             : 
      43             : 
      44             : 
      45             : 
      46             : 
      47             : 
      48           0 : Compiler::Compiler()
      49           0 :     : f_time(time(nullptr))
      50             :     //, f_optimizer(nullptr) -- auto-init
      51             :     //, f_options(nullptr) -- auto-init
      52             :     //, f_program(nullptr) -- auto-init
      53             :     //, f_input_retriever(nullptr) -- auto-init
      54             :     //, f_err_flags(0) -- auto-init
      55             :     //, f_scope(nullptr) -- auto-init
      56             :     //, f_modules() -- auto-init
      57             : {
      58           0 :     internal_imports();
      59           0 : }
      60             : 
      61             : 
      62           0 : Compiler::~Compiler()
      63             : {
      64           0 : }
      65             : 
      66             : 
      67           0 : InputRetriever::pointer_t Compiler::set_input_retriever(InputRetriever::pointer_t retriever)
      68             : {
      69           0 :     InputRetriever::pointer_t old(f_input_retriever);
      70             : 
      71           0 :     f_input_retriever = retriever;
      72             : 
      73           0 :     return old;
      74             : }
      75             : 
      76             : 
      77           0 : void Compiler::set_options(Options::pointer_t options)
      78             : {
      79           0 :     f_options = options;
      80           0 :     f_optimizer->set_options(options);
      81           0 : }
      82             : 
      83             : 
      84             : 
      85             : 
      86             : 
      87           0 : bool Compiler::isspace(int c)
      88             : {
      89           0 :     return c == ' ' || c == '\t';
      90             : }
      91             : 
      92             : 
      93             : 
      94             : 
      95          20 : }
      96             : // namespace as2js
      97             : 
      98             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.9