Changeset 87177 in webkit for trunk/Source/JavaScriptCore/parser/SyntaxChecker.h
- Timestamp:
- May 24, 2011, 11:49:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/SyntaxChecker.h
r76177 r87177 27 27 #define SyntaxChecker_h 28 28 29 #include "Lexer.h" 29 30 #include <yarr/YarrSyntaxChecker.h> 30 31 … … 114 115 static const bool NeedsFreeVariableInfo = false; 115 116 static const bool CanUseFunctionCache = true; 117 static const unsigned DontBuildKeywords = Lexer::DontBuildKeywords; 118 static const unsigned DontBuildStrings = Lexer::DontBuildStrings; 116 119 117 120 int createSourceElements() { return 1; } … … 140 143 ExpressionType createNull() { return NullExpr; } 141 144 ExpressionType createBracketAccess(ExpressionType, ExpressionType, bool, int, int, int) { return BracketExpr; } 142 ExpressionType createDotAccess(ExpressionType, const Identifier &, int, int, int) { return DotExpr; }145 ExpressionType createDotAccess(ExpressionType, const Identifier*, int, int, int) { return DotExpr; } 143 146 ExpressionType createRegExp(const Identifier& pattern, const Identifier&, int) { return Yarr::checkSyntax(pattern.ustring()) ? 0 : RegExpExpr; } 144 147 ExpressionType createNewExpr(ExpressionType, int, int, int, int) { return NewExpr; } … … 154 157 template <bool complete> Property createProperty(const Identifier* name, int, PropertyNode::Type type) 155 158 { 156 ASSERT(name);157 159 if (!complete) 158 160 return Property(type); 161 ASSERT(name); 159 162 return Property(name, type); 160 163 }
Note:
See TracChangeset
for help on using the changeset viewer.