Changeset 13153 in webkit for trunk/JavaScriptCore/kjs/internal.h


Ignore:
Timestamp:
Mar 5, 2006, 9:29:48 PM (19 years ago)
Author:
darin
Message:

Reviewed by Maciej.

  • kjs/Parser.cpp: Added.
  • kjs/Parser.h: Added.
  • kjs/internal.cpp: Removed the Parser class.
  • kjs/internal.h: Ditto. Also removed unnecessary declarations of classes not used in this header.
  • kjs/nodes.h: Added an include of "Parser.h".
  • kjs/function.h: Added a declaration of FunctionBodyNode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/internal.h

    r12921 r13153  
    44 *  Copyright (C) 1999-2001 Harri Porten ([email protected])
    55 *  Copyright (C) 2001 Peter Kelly ([email protected])
    6  *  Copyright (C) 2003 Apple Computer, Inc.
     6 *  Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
    77 *
    88 *  This library is free software; you can redistribute it and/or
     
    4141namespace KJS {
    4242
    43   class Node;
    44   class ProgramNode;
    45   class FunctionBodyNode;
     43  class Debugger;
    4644  class FunctionPrototype;
    47   class FunctionImp;
    48   class Debugger;
    4945
    5046  // ---------------------------------------------------------------------------
     
    136132
    137133  // ---------------------------------------------------------------------------
    138   //                            Parsing & evaluation
     134  //                            Evaluation
    139135  // ---------------------------------------------------------------------------
    140136
     
    143139                  FunctionCode,
    144140                  AnonymousCode };
    145 
    146   /**
    147    * @internal
    148    *
    149    * Parses ECMAScript source code and converts into ProgramNode objects, which
    150    * represent the root of a parse tree. This class provides a conveniant workaround
    151    * for the problem of the bison parser working in a static context.
    152    */
    153   class Parser {
    154   public:
    155     static RefPtr<ProgramNode> parse(const UString &sourceURL, int startingLineNumber,
    156                                         const UChar *code, unsigned int length, int *sourceId = 0,
    157                                         int *errLine = 0, UString *errMsg = 0);
    158     static void accept(ProgramNode *prog);
    159 
    160     static void saveNewNode(Node *node);
    161     static void noteNodeCycle(Node *node);
    162     static void removeNodeCycle(Node *node);
    163 
    164     static int sid;
    165   };
    166141
    167142  class SavedBuiltinsInternal {
Note: See TracChangeset for help on using the changeset viewer.