C# Class System.Xml.Xsl.IlGen.XmlILStateAnalyzer

Scans the content of an constructor and tries to minimize the number of well-formed checks that will have to be made at runtime when constructing content.
Datei anzeigen Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Protected Properties

Property Type Description
fac System.Xml.Xsl.Qil.QilFactory
parentInfo XmlILConstructInfo
withinElem bool
xstates PossibleXmlStates

Public Methods

Method Description
Analyze ( QilNode ndConstr, QilNode ndContent ) : QilNode

Perform analysis on the specified constructor and its content. Return the ndContent that was passed in, or a replacement.

XmlILStateAnalyzer ( QilFactory fac ) : System

Constructor.

Protected Methods

Method Description
AnalyzeChoice ( QilChoice ndChoice, XmlILConstructInfo info ) : void

Analyze choice.

AnalyzeConditional ( QilTernary ndCond, XmlILConstructInfo info ) : void

Analyze conditional.

AnalyzeContent ( QilNode nd ) : QilNode

Recursively analyze content. Return "nd" or a replacement for it.

AnalyzeCopy ( QilNode ndCopy, XmlILConstructInfo info ) : void

Analyze copying items.

AnalyzeLoop ( QilLoop ndLoop, XmlILConstructInfo info ) : void

Analyze loop.

AnalyzeSequence ( QilList ndSeq, XmlILConstructInfo info ) : void

Analyze list.

Private Methods

Method Description
EndLoop ( XmlQueryType typ, XmlILConstructInfo info ) : void

Calculate ending xml states that will result when iterating over and constructing an expression of the specified type.

MaybeAttrNmsp ( XmlQueryType typ ) : bool

Return true if an instance of the specified type might be an attribute or a namespace node.

MaybeContent ( XmlQueryType typ ) : bool

Return true if an instance of the specified type might be a non-empty content type (attr/nsmp don't count).

StartLoop ( XmlQueryType typ, XmlILConstructInfo info ) : void

Calculate starting xml states that will result when iterating over and constructing an expression of the specified type.

Method Details

Analyze() public method

Perform analysis on the specified constructor and its content. Return the ndContent that was passed in, or a replacement.
public Analyze ( QilNode ndConstr, QilNode ndContent ) : QilNode
ndConstr QilNode
ndContent QilNode
return QilNode

AnalyzeChoice() protected method

Analyze choice.
protected AnalyzeChoice ( QilChoice ndChoice, XmlILConstructInfo info ) : void
ndChoice System.Xml.Xsl.Qil.QilChoice
info XmlILConstructInfo
return void

AnalyzeConditional() protected method

Analyze conditional.
protected AnalyzeConditional ( QilTernary ndCond, XmlILConstructInfo info ) : void
ndCond System.Xml.Xsl.Qil.QilTernary
info XmlILConstructInfo
return void

AnalyzeContent() protected method

Recursively analyze content. Return "nd" or a replacement for it.
protected AnalyzeContent ( QilNode nd ) : QilNode
nd QilNode
return QilNode

AnalyzeCopy() protected method

Analyze copying items.
protected AnalyzeCopy ( QilNode ndCopy, XmlILConstructInfo info ) : void
ndCopy QilNode
info XmlILConstructInfo
return void

AnalyzeLoop() protected method

Analyze loop.
protected AnalyzeLoop ( QilLoop ndLoop, XmlILConstructInfo info ) : void
ndLoop System.Xml.Xsl.Qil.QilLoop
info XmlILConstructInfo
return void

AnalyzeSequence() protected method

Analyze list.
protected AnalyzeSequence ( QilList ndSeq, XmlILConstructInfo info ) : void
ndSeq System.Xml.Xsl.Qil.QilList
info XmlILConstructInfo
return void

XmlILStateAnalyzer() public method

Constructor.
public XmlILStateAnalyzer ( QilFactory fac ) : System
fac System.Xml.Xsl.Qil.QilFactory
return System

Property Details

fac protected_oe property

protected QilFactory,System.Xml.Xsl.Qil fac
return System.Xml.Xsl.Qil.QilFactory

parentInfo protected_oe property

protected XmlILConstructInfo,System.Xml.Xsl.IlGen parentInfo
return XmlILConstructInfo

withinElem protected_oe property

protected bool withinElem
return bool

xstates protected_oe property

protected PossibleXmlStates xstates
return PossibleXmlStates