~vil/pydev/upstream

« back to all changes in this revision

Viewing changes to org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors/AssignDefinition.java

  • Committer: Vladimír Lapáček
  • Date: 2006-08-30 18:38:44 UTC
  • Revision ID: vladimir.lapacek@gmail.com-20060830183844-f4d82c1239a7770a
Initial import of upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Created on Jan 19, 2005
 
3
 *
 
4
 * @author Fabio Zadrozny
 
5
 */
 
6
package org.python.pydev.editor.codecompletion.revisited.visitors;
 
7
 
 
8
import org.python.pydev.core.IModule;
 
9
import org.python.pydev.parser.jython.ast.Assign;
 
10
 
 
11
 
 
12
public class AssignDefinition extends Definition{
 
13
    
 
14
    /**
 
15
     * This is the token name.
 
16
     */
 
17
    public String target;
 
18
    
 
19
    /**
 
20
     * This is the position in the target.
 
21
     * 
 
22
     * e.g. if we have:
 
23
     * 
 
24
     * a, b = someCall()
 
25
     * 
 
26
     * and we're looking for b, target pos would be 1
 
27
     * if we were looking for a, target pos would be 0
 
28
     */
 
29
    public int targetPos;
 
30
    
 
31
    /**
 
32
     * Constructor.
 
33
     * 
 
34
     * @param assign
 
35
     * @param ast
 
36
     * @param line
 
37
     * @param col
 
38
     */
 
39
    public AssignDefinition(String value, String target, int targetPos, Assign ast, int line, int col, Scope scope, IModule module){
 
40
        super(line, col, value, ast, scope, module);
 
41
        this.target = target;
 
42
        this.targetPos = targetPos;
 
43
    }
 
44
}
 
 
b'\\ No newline at end of file'