From 7261f0e62702c245458cf0a3232ee4f8411fa6c6 Mon Sep 17 00:00:00 2001 From: Bob Pan Date: Mon, 8 Dec 2014 22:01:42 +0800 Subject: [PATCH] support .param in smali --HG-- branch : 2.x --- d2j-smali/src/main/antlr3/com/googlecode/d2j/smali/Smali.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2j-smali/src/main/antlr3/com/googlecode/d2j/smali/Smali.g b/d2j-smali/src/main/antlr3/com/googlecode/d2j/smali/Smali.g index 1d59aefe..d5ef9e74 100644 --- a/d2j-smali/src/main/antlr3/com/googlecode/d2j/smali/Smali.g +++ b/d2j-smali/src/main/antlr3/com/googlecode/d2j/smali/Smali.g @@ -233,7 +233,7 @@ sFieldValue returns[Object s] : a=sBaseValue {$s=$a.v;}; sParameter[DexMethodVisitor dmv, int paramIndex, DexDebugVisitor debugVisitor] : ('.parameter' (a=STRING { debugVisitor.visitParameterName(paramIndex,unescapeStr($a.text)); } )? ( ( {dexAnnotationAble=dmv.visitParameterAnnotation(paramIndex);} sAnnotation {dexAnnotationAble=null;})* '.end parameter')?) - | ('.param' { if(true){throw new RuntimeException("not support '.param' yet");} } REGISTER (',' STRING)? (({dexAnnotationAble=dmv.visitParameterAnnotation(paramIndex);} sAnnotation {dexAnnotationAble=null;})* '.end param')?) + | ('.param' r1=REGISTER (',' a=STRING { debugVisitor.visitParameterName(getReg($r1.text), unescapeStr($a.text)); } )? (({dexAnnotationAble=dmv.visitParameterAnnotation(getReg($r1.text));} sAnnotation {dexAnnotationAble=null;})* '.end param')?) ; sAnnotationKeyName : sBaseMemberName|ACC;