summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/parser/qmljsast_p.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-07-24 04:15:06 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-07-24 04:15:06 (GMT)
commit60cd50b800b6e6cf185df170c1b2cb41108a82b6 (patch)
treeb8995d6668d5f3a4f03bd31745f1be03a0da4080 /src/declarative/qml/parser/qmljsast_p.h
parente6f14d21fa03d4301fcb7d7de1733bc65fe59e43 (diff)
downloadQt-60cd50b800b6e6cf185df170c1b2cb41108a82b6.zip
Qt-60cd50b800b6e6cf185df170c1b2cb41108a82b6.tar.gz
Qt-60cd50b800b6e6cf185df170c1b2cb41108a82b6.tar.bz2
Removed support for CSS-like literals.
Diffstat (limited to 'src/declarative/qml/parser/qmljsast_p.h')
-rw-r--r--src/declarative/qml/parser/qmljsast_p.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/declarative/qml/parser/qmljsast_p.h b/src/declarative/qml/parser/qmljsast_p.h
index 6d269ac..eba9202 100644
--- a/src/declarative/qml/parser/qmljsast_p.h
+++ b/src/declarative/qml/parser/qmljsast_p.h
@@ -104,7 +104,7 @@ enum Op {
} // namespace QSOperator
-namespace QmlJS {
+namespace QmlJS {
class NameId;
namespace AST {
@@ -400,30 +400,8 @@ class NumericLiteral: public ExpressionNode
public:
QMLJS_DECLARE_AST_NODE(NumericLiteral)
- enum Suffix { // ### keep it in sync with the Suffix enum in qmljslexer_p.h
- noSuffix,
- emSuffix,
- exSuffix,
- pxSuffix,
- cmSuffix,
- mmSuffix,
- inSuffix,
- ptSuffix,
- pcSuffix,
- degSuffix,
- radSuffix,
- gradSuffix,
- msSuffix,
- sSuffix,
- hzSuffix,
- khzSuffix
- };
-
- static int suffixLength[];
- static const char *const suffixSpell[];
-
- NumericLiteral(double v, int suffix):
- value(v), suffix(suffix) { kind = K; }
+ NumericLiteral(double v):
+ value(v) { kind = K; }
virtual ~NumericLiteral() {}
virtual void accept0(Visitor *visitor);
@@ -436,7 +414,6 @@ public:
// attributes:
double value;
- int suffix;
SourceLocation literalToken;
};