* XPathSequence.cs :
missed last checkin.
Added WrapperIterator, RemovalIterator for fn:remove(),
InsertingIterator for fn:insertBefore() and DistinctValueIterator
for fn:distinct-values().
* XQueryCliFunction.cs :
Improved error message. Handle null argument as empty sequence.
* XQueryFunction.cs :
Fixed incorrect function name fn:zero-or-more -> fn:zero-or-one.
* XQueryFunctionCliImpl.cs :
Implemented some functions. Fixed some function signatures.
svn path=/trunk/mcs/; revision=34801
* XPathSequence.cs, XQueryTokenizer.cs :
removed commented && unused code.
* XQueryContext.cs, XQueryCliFunction.cs, XQueryFunction.cs,
XQueryFunctionCliImpl.cs :
Now that position() requires current sequence that is not managed by
XQueryContextManager (that is for FLWOR), it need to support
XPathSequence input as the current node information.
svn path=/trunk/mcs/; revision=34741
* XPath2Expression.cs,
XPathSequence.cs :
Implemented GroupExpr.Evaluate() [union/intersect/except].
Fixed incorrect iterator input for DescendantExpr.Evaluate().
MinusExpr is (already) implemented not to be evaluated.
* XQueryExpression.cs :
PI name and nameExpr could be implemented.
* XQueryFunction.cs :
UserFunctionCallExpr.Invoke() should not be invoked.
* XQueryFunctionCliImpl.cs :
Implemented count(), doc(). Halfly implemented trace().
* XmlQueryException.cs : Serializable.
svn path=/trunk/mcs/; revision=33111
* 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
* XQueryASTCompiler.cs, XQueryStaticContext.cs :
Now it requires Evidence and XQueryCommandImpl for security check
and event dispatch.
* XQueryCommandImpl.cs :
Provide Evidence for compiler. Added some code for message dispatch.
* XQueryContext.cs :
Now don't pool variable only in XQueryContextManager.
When variable name could not be resolved, return empty sequence
(not sure if it is always correct).
Fixes which reflects XPathEmptySequence.ctor() parameter changes.
* XQueryCliFunction.cs :
Now it requires CAS if Evidence is supplied (in the future
Evidence won't be null _at any time_).
* XQueryConvert.cs :
implemented GetFallbackType(). Fixed some comments.
* XPathSequence.cs :
Don't require XPathSequence as an argument for XPathEmptySequence.
Implemented FilteredIterator.
Implemented FLWORIterator partly (not working).
Fixed some incorrect exception type: XPathEx- to XmlQueryEx-.
Dispatch message event to XQueryStaticContext.OnMessageEvent().
Added EnumeratorIterator.
* XQueryFunction.cs:
Fixes which reflects XPathEmptySequence.ctor() parameter changes.
* XQueryExpression.cs :
Commonized content serialization for node constructors.
* XPath2Expression.cs :
use XPathItem.TypedValue instead of (string) Value.
In effective boolean value computation, Check Decimal as well.
Fixed misimplemented QuantifiedExpr.EvaluateAsBoolean().
Fix which reflects XQueryContext.PushVariables() changes.
Handle possible null argument on ParenthesizedExpr i.e. "( )".
svn path=/trunk/mcs/; revision=33011
* XPath2Expression.cs : in Compiler(), function call's arguments must
also be compiled.
* XQueryASTCompiler.cs : When function is external, it should not try
to compile body, and tries to handle it as a native CLI method (I
don't like this name resolution design very much, so it is likely
to be redesigned).
* XQueryCliFunction.cs : trivial code comment fix.
* XQueryFunction : added user-specified function call support.
When CLI function returned null, don't wrap null and just return
XQueryEmptySequence.
* XQueryFunctionCliImpl.cs : fn:nilled() requires certain node.
Implemented numeric functions (in the future they might be
rewritten to avoid boxing).
* XQueryTokenizer.cs : Skip XQuery comment inside default state.
PI and XML comment are not read correctly.
svn path=/trunk/mcs/; revision=32856
* XPath2Expression.cs :
Check write state before writing document node.
Check if navigator's SchemaInfo is null or not before atomizing.
Use individual axis-based iterator in AxisStepExpr.Evaluate().
* XPathSequence.cs : added individual axis-based iterator.
Removed commented NodeKindTestIterator.
* XQueryCliFunction.cs, XQueryContext.cs, XQueryFunction.cs :
Now XQueryContext.CurrentItem explicitly throws exception if
no context node was provided (also XQueryCommand.Execute() is
fixed not to provide empty document as input).
Now XQueryFunction should not access to CurrentItem unless it is
required.
* XQueryFunctionCliImpl.cs : fixed more method signatures.
svn path=/trunk/mcs/; revision=32827
* 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