File: XslFlags.cs

package info (click to toggle)
mono 6.14.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,282,732 kB
  • sloc: cs: 11,182,461; xml: 2,850,281; ansic: 699,123; cpp: 122,919; perl: 58,604; javascript: 30,841; asm: 21,845; makefile: 19,602; sh: 10,973; python: 4,772; pascal: 925; sql: 859; sed: 16; php: 1
file content (46 lines) | stat: -rw-r--r-- 2,052 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//------------------------------------------------------------------------------
// <copyright file="XslFlags.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
// <owner current="true" primary="true">sdub</owner>
//------------------------------------------------------------------------------

namespace System.Xml.Xsl {
    [Flags]
    internal enum XslFlags {
        None          = 0x0000,

        // XPath types flags. These flags indicate what type the result of the expression may have.
        String        = 0x0001,
        Number        = 0x0002,
        Boolean       = 0x0004,
        Node          = 0x0008,
        Nodeset       = 0x0010,
        Rtf           = 0x0020,
        TypeFilter    = AnyType,
        AnyType       = XslFlags.String | XslFlags.Number | XslFlags.Boolean | XslFlags.Node | XslFlags.Nodeset | XslFlags.Rtf,

        // Focus flags. These flags indicate which of the three focus values (context item, context position,
        // context size) are required for calculation of the expression.
        Current       = 0x0100,
        Position      = 0x0200,
        Last          = 0x0400,
        FocusFilter   = FullFocus,
        FullFocus     = XslFlags.Current | XslFlags.Position | XslFlags.Last,

        // Indicates that the expression contains at least one of xsl:call-template, xsl:apply-templates,
        // xsl:apply-imports, [xsl:]use-attribute-sets. Needed for default values of xsl:param's.
        HasCalls      = 0x1000,

        // Used for xsl:param's only. Indicates that at least one caller does not pass value for this param,
        // so its default value will be used.
        MayBeDefault  = 0x2000,

        // Indicates that expression may produce side effects
        // This flag is on for xsl:message and for calls to extension functions.
        SideEffects   = 0x4000,

        // Indicates that the corresponding graph vertex has been already visited in flag propagation process.
        Stop          = 0x8000,
    }
}