CompilationWarnings EnumerationCompilationWarnings EnumerationCompilationWarnings Enumeration
Specifies which warnings should be raised during compilation.
This enumeration has a FlagsAttributeFlagsAttributeFlagsAttribute attribute that allows a bitwise combination of its member values.
The CompilationWarningsCompilationWarningsCompilationWarnings
type exposes the following members.
Members
Member | Description | |
---|---|---|
![]() | AllAllAll | Enables all compilation warnings |
![]() | DynamicErrorsDynamicErrorsDynamicErrors | Issue a warning when dynamic errors are detected statically by the compiler. |
![]() | EmptySequenceEmptySequenceEmptySequence |
Issue a warning for expressions whose static type is determined to be empty-sequence() .
|
![]() | NoneNoneNone | No extra compilation settings are enabled. |
![]() | OtherOtherOther | Issue a warning in other cases (eg. encoding declaration does not match the encoding of the query) |
![]() | PathReturnsConstructedNodesPathReturnsConstructedNodesPathReturnsConstructedNodes | A path expression returns constructed nodes, and so the order is not defined. |
![]() | UnreachableCodeUnreachableCodeUnreachableCode | Issue a warning for expressions which can never be executed. |
![]() | UnusedVariableUnusedVariableUnusedVariable | Issue a warning for variables that are declared but not used. |
Remarks
Compiler warnings indicate constructs in XQuery programs, XPath expressions or XSL transformations which, while not erroneous, may indicate unintended behaviour or an accidental mistake.
Use the CompilationWarningsCompilationWarningsCompilationWarnings property to set the warnings that should be raised during the compilation of an XQuery program, an XPath expression or an XSL transformation.