public ContinueStatement(Name label) { { type = Token.CONTINUE; } SetLabel(label); }
/// <summary>Sets the intended label of this break statement, e.g.</summary> /// <remarks> /// Sets the intended label of this break statement, e.g. 'foo' /// in "break foo". Also sets the parent of the label to this node. /// </remarks> /// <param name="label"> /// the break label, or /// <code>null</code> /// if the statement is /// just the "break" keyword by itself. /// </param> public virtual void SetBreakLabel(Name label) { breakLabel = label; if (label != null) { label.SetParent(this); } }
public PropertyGet(AstNode target, Name property, int dotPosition) : base(Token.GETPROP, target, property, dotPosition) { { type = Token.GETPROP; } }
/// <summary>Constructor.</summary> /// <remarks> /// Constructor. Updates bounds to include left ( /// <code>target</code> /// ) and /// right ( /// <code>property</code> /// ) nodes. /// </remarks> public PropertyGet(AstNode target, Name property) : base(target, property) { { type = Token.GETPROP; } }
public PropertyGet(int pos, int len, AstNode target, Name property) : base(pos, len, target, property) { { type = Token.GETPROP; } }
/// <summary>Sets the property being accessed, and sets its parent to this node.</summary> /// <remarks>Sets the property being accessed, and sets its parent to this node.</remarks> /// <exception cref="System.ArgumentException"> /// } if /// <code>property</code> /// is /// <code>null</code> /// </exception> public virtual void SetProperty(Name property) { SetRight(property); }
/// <summary>Sets function name, and sets its parent to this node.</summary> /// <remarks>Sets function name, and sets its parent to this node.</remarks> /// <param name="name"> /// function name, /// <code>null</code> /// for anonymous functions /// </param> public virtual void SetFunctionName(Name name) { functionName = name; if (name != null) { name.SetParent(this); } }
public FunctionNode(int pos, Name name) : base(pos) { { type = Token.FUNCTION; } SetFunctionName(name); }
/// <summary>Sets catch variable node, and sets its parent to this node.</summary> /// <remarks>Sets catch variable node, and sets its parent to this node.</remarks> /// <param name="varName">catch variable</param> /// <exception cref="System.ArgumentException"> /// if varName is /// <code>null</code> /// </exception> public virtual void SetVarName(Name varName) { AssertNotNull(varName); this.varName = varName; varName.SetParent(this); }
/// <summary>Sets namespace, and sets its parent to this node.</summary> /// <remarks> /// Sets namespace, and sets its parent to this node. /// Can be /// <code>null</code> /// . /// </remarks> public virtual void SetNamespace(Name @namespace) { this.@namespace = @namespace; if (@namespace != null) { @namespace.SetParent(this); } }
private Node TransformName(Name node) { decompiler.AddName(node.GetIdentifier()); return node; }
/// <summary>Sets property name, and sets its parent to this node.</summary> /// <remarks>Sets property name, and sets its parent to this node.</remarks> /// <exception cref="System.ArgumentException"> /// if /// <code>propName</code> /// is /// <code>null</code> /// </exception> public virtual void SetPropName(Name propName) { AssertNotNull(propName); this.propName = propName; propName.SetParent(this); }
public ContinueStatement(int pos, int len, Name label) : this(pos, len) { SetLabel(label); }
/// <summary>Sets the intended label of this continue statement.</summary> /// <remarks> /// Sets the intended label of this continue statement. /// Only applies if the statement was of the form "continue <label>". /// </remarks> /// <param name="label"> /// the continue label, or /// <code>null</code> /// if not present. /// </param> public virtual void SetLabel(Name label) { this.label = label; if (label != null) { label.SetParent(this); } }