Qt 4.8
|
Compile time only AST-node which is a marker for variable references whose declaration has not yet appeared in the source code. More...
#include <qunresolvedvariablereference_p.h>
Properties | |
const QXmlName | m_name |
Expression::Ptr | m_replacement |
Compile time only AST-node which is a marker for variable references whose declaration has not yet appeared in the source code.
This can not appear in XQuery, but can in XSL-T.
Definition at line 73 of file qunresolvedvariablereference_p.h.
UnresolvedVariableReference::UnresolvedVariableReference | ( | const QXmlName & | name | ) |
Definition at line 50 of file qunresolvedvariablereference.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 81 of file qunresolvedvariablereference.cpp.
|
inline |
Definition at line 94 of file qunresolvedvariablereference_p.h.
|
virtual |
Reimplemented from QPatternist::EmptyContainer.
Definition at line 76 of file qunresolvedvariablereference.cpp.
|
virtual |
This property, which has no setter, returns an enum value that uniquely identifies this Expression. Patternist makes no use of C++'s dynamic_cast feature, but uses this polymorphic function instead.
Reimplemented from QPatternist::Expression.
Definition at line 86 of file qunresolvedvariablereference.cpp.
|
inline |
Definition at line 100 of file qunresolvedvariablereference_p.h.
Referenced by QPatternist::checkVariableCircularity().
|
virtual |
Implements QPatternist::Expression.
Definition at line 67 of file qunresolvedvariablereference.cpp.
|
virtual |
This implementation guarantees to never rewrite away this Expression, but at most rewrite it as a child of another expression(that presumably have a type checking role). It is therefore always safe to override this function and call this implementation and not worry about that this Expression becomes deleted.
Many Expressions override typeCheck() and performs optimizations, as opposed to doing it in the compress() stage. This is due to that the design of those Expressions often are tied to that certain simplifications are done at the typeCheck() stage of the compilation process or that it in some other way is related to what the typeCheck() do. Also, the earlier the AST can be simplified, the better the chances are for subsequent optimizations.
It is important that the super class's typeCheck() is called before doing any custom type checking, since the call can change the children(notably, the childrens' static types). For example, if the Expression, MyExpression in the example, does not match the required type, typeCheck returns the Expression wrapped in for example ItemVerifier, CardinalityVerifier, or both.
typeCheck() may be called many times. typeCheck() must either raise an error if this Expression is an invalid expression. Thus, it is guaranteed that an Expression is valid after typeCheck() is called.
context | supplies information, such as namespace bindings and available function signatures, that can be needed at compilation time. context is guaranteed by the caller to never null. |
reqType | the static type that this Expression must match when evaluated. reqType is guaranteed by the caller to never null. |
reqType
Reimplemented from QPatternist::Expression.
Definition at line 55 of file qunresolvedvariablereference.cpp.
|
private |
Definition at line 90 of file qunresolvedvariablereference_p.h.
Referenced by UnresolvedVariableReference().
|
private |
Definition at line 91 of file qunresolvedvariablereference_p.h.
Referenced by staticType(), and typeCheck().