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

Scans constructed content, looking for redundant namespace declarations. If any are found, then they are marked and removed later.
显示文件 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Analyze ( QilNode nd, bool defaultNmspInScope ) : void

Perform scan.

Private Methods

Method Description
AnalyzeContent ( QilNode nd ) : void

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

CheckNamespaceInScope ( QilBinary nd ) : bool

Determine whether an ElementCtor, AttributeCtor, or NamespaceDecl's namespace is already declared. If it is, set the IsNamespaceInScope property to True. Otherwise, add the namespace to the set of in-scope namespaces if addInScopeNmsp is True. Return false if the name is computed or is invalid.

Method Details

Analyze() public method

Perform scan.
public Analyze ( QilNode nd, bool defaultNmspInScope ) : void
nd QilNode
defaultNmspInScope bool
return void