[Geany-devel] tagmanager related questions

Константин Лосев knight13 at xxxxx
Tue Jan 18 12:22:48 UTC 2011


Hello, i am working on improving php parser in geany. Here is my result
http://www.pasteall.org/pic/show.php?id=8137

But i can't understand fully tag system of geany. We have structure:
typedef struct sTagEntryInfo {
    boolean	lineNumberEntry;/* pattern or line number entry */
    unsigned long lineNumber;	/* line number of tag */
    fpos_t	filePosition;	/* file position of line containing tag */
    int bufferPosition;		/* buffer position of line containing tag */
    const char*	language;	/* language of source file */
    boolean	isFileScope;	/* is tag visibile only within source file? */
    boolean	isFileEntry;	/* is this just an entry for a file name? */
    boolean	truncateLine;	/* truncate tag line at end of tag name? */
    const char *sourceFileName;	/* name of source file */
    const char *name;		/* name of the tag */
    const char *kindName;	/* kind of tag */
    char	kind;		/* single character representation of kind */
    struct {
	const char* access;
	const char* fileScope;
	const char* implementation;
	const char* inheritance;
	const char* scope [2];	/* value and key */
	const char *arglist; /* Argument list for functions and macros with arguments */
	const char *varType;
    } extensionFields;		/* list of extension fields*/
	int type;
	unsigned long seekPosition;
} tagEntryInfo;

Now we have such php code:
<?php

class test1{
	var $abc;var $test;
	function test567(){
		echo "{$a}";
		echo '{$a1}';
	}
	
}

$hello=new test1();

?>

so questions: 
1) is i am right that varType of $hello must be test1? so varType is the type of variable?
2) what must be done to be visible for $abc in autocompletion for test1 class? Now i have see autocompletion only for functions of class, not variables.
3) what varType must be for variables in scope? for example class properties.
4) can be access and inheritance be used for autocompletion? for example autocompletion will not shown for private functions. or if inheritance is used for autocompletion?



More information about the Devel mailing list