semantic-get-local-variables seems to be broken for me when using the Java
1.5 wisent parser in cedet 1.0pre3
Debugger entered: (((("className" 15214 . 15244) variable (:type "String")
(reparse-symbol local_variable_declaration) [15207 15244])))
byte-code("=C1=C2!?=08!? [tag message "A Rule must return a single tag-line=
list!"
debug] 2)
semantic--tag-expand(((("className" 15214 . 15244) variable (:type "String"=
)
(reparse-symbol local_variable_declaration) [15207 15244])))
semantic-repeat-parse-whole-stream(((IDENTIFIER 15207 . 15213) (IDENTIFIER
15214 . 15223) (EQ 15224 . 15225) (STRING_LITERAL 15226 . 15244) (SEMICOLON
15244 . 15245) (IF 15254 . 15256) (LPAREN 15257 . 15258) (IDENTIFIER 15258 =
.
15262) (DOT 15262 . 15263) (IDENTIFIER 15263 . 15269) (GT 15270 . 15271)
(NUMBER_LITERAL 15272 . 15273) (RPAREN 15273 . 15274) (IDENTIFIER 15287 .
15296) (EQ 15297 . 15298) (IDENTIFIER 15299 . 15303) (LBRACK 15303 . 15304)
(NUMBER_LITERAL 15304 . 15305) (RBRACK 15305 . 15306) (SEMICOLON 15306 .
15307) (IDENTIFIER 15316 . 15324) (LPAREN 15324 . 15325) (IDENTIFIER 15325 =
.
15334) (COMMA 15334 . 15335) (BOOLEAN_LITERAL 15336 . 15340) (COMMA 15340 .
15341) (BOOLEAN_LITERAL 15342 . 15346) (COMMA 15346 . 15347) (IDENTIFIER
15348 . 15354) (DOT 15354 . 15355) (IDENTIFIER 15355 . 15358) (RPAREN 15358
. 15359) (SEMICOLON 15359 . 15360)) block_statement t)
semantic-parse-region-default(15198 15365 block_statement nil t)
semantic-parse-region(15198 15365 block_statement nil t)
semantic-get-local-variables-java-mode()
semantic-get-local-variables()
eval((semantic-get-local-variables))
eval-expression((semantic-get-local-variables) nil)
This was from within a method that looked like this :
public static void main (String [] args) {
String className =3D "Usages|jde.util.";
if (args.length > 0)
className =3D args[0];
findSubs(className, true, true, System.out);
}
but it seems to fail with any method that defines local variables. For
methods with no locals, semantic-get-local-variables correctly
returns nil without throwing any errors.
Suraj
|