* XQueryParser.jay, XPath2Expression.cs, XPathSequence.cs :
two or more Filter expressions could be simply constructed as
nested FilterExpr objects.
svn path=/trunk/mcs/; revision=34691
* XPath2Expression.cs :
Revised some parameters for XPathSequence classes ctor().
Don't require XPathSequence while they are not required.
AxisIterator need to accept only current node as its input.
Implemented node comparison operators.
Removed AxisStepExpr.ParentStep (in the future it might hold line
information).
* XQueryParser.jay : changes wrt AxisStepExpr.ParentStep.
* XPathSequence.cs, XQueryExpression.cs, XQueryFunction.cs :
Removed some extraneous code.
NodeIterator.ctor() now requires XPathNavigator and XQueryContext
instead of XPathSequence.
Added SelfIterator (derived from NodeIterator).
svn path=/trunk/mcs/; revision=33100
* XPath2Expression.cs :
Fixed PathRootExpr.Evaluate() that always failed.
Renamed PathChildExpr to PathSlashExpr, PathDescendantExpr to
PathSlash2Expr, and added abstract PathStepExpr.
PathSlash2Expr.Evaluate() now uses PathStepIterator
* XPathSequence.cs :
- Modified MoveNextCore() as protected.
- Fixed SingleItemIterator.MoveNext() to be simple.
- Renamed ChildPathIterator to PathStepIterator. Mostly copied
SlashIterator logic from Iterator.cs into PathStepIterator.
- Removed DescendantPathIterator ("//" should be the same as
"/descendant-or-self::node()/").
- NodeIterator.Node should come from current node, not context node.
- Added dummy flag for NodeIterator's copy constructor (that resulted
in incorrect copying for some usecases).
* XQueryParser.jay : Fixes in sync with Expr class name changes.
svn path=/trunk/mcs/; revision=32871
* SequenceType.cs : added ToRuntimeType().
* XPath2Expression.cs : override is required.
* XPathSequence.cs : fixed ExprSequenceIterator.MoveNext() that caused
infinite loop.
* XQueryCompileContext.cs : CultureInfo was missing.
* XQueryContext.cs : CurrentContext must be created after setting
currentSequence.
* XQueryConvert.cs : DateTimeToString() was missing.
* XQueryFunction.cs : convert parameters to runtime type before
being used in Invoke(). Use function's ReturnType to create typed
atomic.
* XQueryParser.jay : create XQueryFunctionArgumentList instance
for function calls that does not have parameters.
svn path=/trunk/mcs/; revision=32755
* SequenceType.cs, XPath2Expression.cs, XQueryASTCompiler.cs,
XQueryCliFunction.cs, XQueryCompileOptions.cs, XQueryContext.cs,
XQueryConvert.cs, XQueryExpression.cs, XQueryFunction,cs,
XQueryFunctionCliImpl.cs, XQueryFunctionTable.cs,
XQueryModuleProlog.cs, XQueryParser.jay, XQueryStaticContext.cs,
XQueryTokenizer.cs :
Eliminate MS.Internal.Xml.* classes. More null check everywhere and
make Compile() pass though as a dummy. Unified FunctionParam into
XQueryFunctionArgument. More kind error message. Several fixes.
svn path=/trunk/mcs/; revision=32703
* XQueryExpression.cs : Content for XmlTextConstructor might be null,
and use literal text for constructor argument if supplied.
* XQueryParser.jay, XQueryTokenizer.cs : Element content literal
string was not parsed and kept correctly. Parse CDATA section.
svn path=/trunk/mcs/; revision=32582
* XQueryParser.jay,
XPath2Expression.cs,
XQueryModuleProlog.cs,
XQueryTokenizer.cs :
Removed SchemaContext. StepExpr and XPathAxis redesign.
(Partially) updated Prolog to match with XQuery 7/23/2004 spec.
XML comment/PI/CDATA recognition in tokenizer.
svn path=/trunk/mcs/; revision=31526