GetTarget() public method

Returns the object on which the property is being fetched.
Returns the object on which the property is being fetched. Should never be null .
public GetTarget ( ) : AstNode
return AstNode
Beispiel #1
0
		// only used for destructuring forms
		internal void DecompilePropertyGet(PropertyGet node)
		{
			Decompile(node.GetTarget());
			decompiler.AddToken(Token.DOT);
			Decompile(node.GetProperty());
		}
Beispiel #2
0
		private Node TransformPropertyGet(PropertyGet node)
		{
			Node target = Transform(node.GetTarget());
			string name = node.GetProperty().GetIdentifier();
			decompiler.AddToken(Token.DOT);
			decompiler.AddName(name);
			return CreatePropertyGet(target, null, name, 0);
		}