/// <summary> /// Create a shallow copy of this node, copying all the fields. /// </summary> public virtual QilNode ShallowClone(QilFactory f) { QilNode n = (QilNode)MemberwiseClone(); f.TraceNode(n); return(n); }
/// <summary> /// Override in order to clone the "members" array. /// </summary> public override QilNode ShallowClone(QilFactory f) { QilList n = (QilList)MemberwiseClone(); n._members = (QilNode[])_members.Clone(); f.TraceNode(n); return n; }
//----------------------------------------------- // Convenience methods //----------------------------------------------- public QilExpression QilExpression(QilNode root, QilFactory factory) { QilExpression n = new QilExpression(QilNodeType.QilExpression, root, factory); n.XmlType = _typeCheck.CheckQilExpression(n); TraceNode(n); return n; }
public override QilNode ShallowClone(QilFactory f) { QilList n = (QilList)MemberwiseClone(); n._members = (QilNode[])_members.Clone(); f.TraceNode(n); return(n); }
//----------------------------------------------- // Convenience methods //----------------------------------------------- public QilExpression QilExpression(QilNode root, QilFactory factory) { QilExpression n = new QilExpression(QilNodeType.QilExpression, root, factory); n.XmlType = this.typeCheck.CheckQilExpression(n); TraceNode(n); return(n); }
/// <summary> /// Construct QIL from a rooted graph of QilNodes with a specific factory. /// </summary> public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType) { this.factory = factory; this.isDebug = factory.False(); XmlWriterSettings settings = new XmlWriterSettings(); settings.ConformanceLevel = ConformanceLevel.Auto; this.defWSet = factory.LiteralObject(settings); this.wsRules = factory.LiteralObject(new List<WhitespaceRule>()); this.funList = factory.FunctionList(); this.gloVars = factory.GlobalVariableList(); this.gloParams = factory.GlobalParameterList(); this.rootNod = root; }
/// <summary> /// Construct QIL from a rooted graph of QilNodes with a specific factory. /// </summary> public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType) { _factory = factory; _isDebug = factory.False(); XmlWriterSettings settings = new XmlWriterSettings(); settings.ConformanceLevel = ConformanceLevel.Auto; _defWSet = factory.LiteralObject(settings); _wsRules = factory.LiteralObject(new List<WhitespaceRule>()); _gloVars = factory.GlobalVariableList(); _gloParams = factory.GlobalParameterList(); _earlBnd = factory.LiteralObject(new List<EarlyBoundInfo>()); _funList = factory.FunctionList(); _rootNod = root; }
/// <summary> /// Construct QIL from a rooted graph of QilNodes with a specific factory. /// </summary> public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType) { this.factory = factory; this.isDebug = factory.False(); XmlWriterSettings settings = new XmlWriterSettings(); settings.ConformanceLevel = ConformanceLevel.Auto; this.defWSet = factory.LiteralObject(settings); this.wsRules = factory.LiteralObject(new List <WhitespaceRule>()); this.funList = factory.FunctionList(); this.gloVars = factory.GlobalVariableList(); this.gloParams = factory.GlobalParameterList(); this.rootNod = root; }
/// <summary> /// Construct QIL from a rooted graph of QilNodes with a specific factory. /// </summary> public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType) { _factory = factory; _isDebug = factory.False(); XmlWriterSettings settings = new XmlWriterSettings(); settings.ConformanceLevel = ConformanceLevel.Auto; _defWSet = factory.LiteralObject(settings); _wsRules = factory.LiteralObject(new List <WhitespaceRule>()); _gloVars = factory.GlobalVariableList(); _gloParams = factory.GlobalParameterList(); _earlBnd = factory.LiteralObject(new List <EarlyBoundInfo>()); _funList = factory.FunctionList(); _rootNod = root; }
public QilXmlReader(XmlReader r) { _r = r; _f = new QilFactory(); }
public QilPatternFactory(QilFactory f, bool debug) { Debug.Assert(f != null); _f = f; _debug = debug; }
public QilCloneVisitor(QilFactory fac, SubstitutionList subs) { _fac = fac; _subs = subs; }
public QilReplaceVisitor(QilFactory f) { this.f = f; }
public QilXmlReader(XmlReader r) { this.r = r; this.f = new QilFactory(); }
public QilPatternVisitor(QilPatterns patterns, QilFactory f) : base(f) { Patterns = patterns; }
//----------------------------------------------- // meta //----------------------------------------------- public QilExpression QilExpression(QilNode root, QilFactory factory) { return f.QilExpression(root, factory); }
/// <summary> /// Constructor. /// </summary> public QilPatternVisitor(QilPatterns patterns, QilFactory f) : base(f) { Patterns = patterns; }
public QilCloneVisitor(QilFactory fac, SubstitutionList subs) { this.fac = fac; this.subs = subs; }
/// <summary> /// Constructor. /// </summary> public XmlILElementAnalyzer(QilFactory fac) : base(fac) { }
public ReferenceReplacer(QilFactory f) : base(f) { }
//----------------------------------------------- // meta //----------------------------------------------- public QilExpression QilExpression(QilNode root, QilFactory factory) { return(_f.QilExpression(root, factory)); }
/// <summary> /// Create a new deep copy of this node. /// </summary> public virtual QilNode DeepClone(QilFactory f) { return(new QilCloneVisitor(f).Clone(this)); }
public QilPatternFactory(QilFactory f, bool debug) { Debug.Assert(f != null); this.f = f; this.debug = debug; }
/// <summary> /// Constructor. /// </summary> public XmlILStateAnalyzer(QilFactory fac) { this.fac = fac; }
public XPathQilFactory(QilFactory f, bool debug) : base(f, debug) { }
//----------------------------------------------- // Constructors //----------------------------------------------- public QilCloneVisitor(QilFactory fac) : this(fac, new SubstitutionList()) { }
public XsltQilFactory(QilFactory f, bool debug) : base(f, debug) {}
public Cloner(QilFactory f) : base(f) {}