mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
chore(smali): add tests
This commit is contained in:
parent
9f157094cd
commit
b39e6bd615
7 changed files with 420 additions and 1 deletions
55
tests/indent/smali/parameter.smali
Normal file
55
tests/indent/smali/parameter.smali
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
.class public Lbaksmali/test/class;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.source "baksmali_test_class.smali"
|
||||
|
||||
.method public debugTest(IIIII)V
|
||||
.registers 10
|
||||
|
||||
.parameter "Blah"
|
||||
.parameter
|
||||
.parameter "BlahWithAnnotations"
|
||||
.annotation runtime Lsome/annotation;
|
||||
something = "some value"
|
||||
somethingelse = 1234
|
||||
.end annotation
|
||||
.annotation runtime La/second/annotation;
|
||||
.end annotation
|
||||
.end parameter
|
||||
.parameter
|
||||
.annotation runtime Lsome/annotation;
|
||||
something = "some value"
|
||||
somethingelse = 1234
|
||||
.end annotation
|
||||
.end parameter
|
||||
.parameter "LastParam"
|
||||
|
||||
.prologue
|
||||
|
||||
nop
|
||||
nop
|
||||
|
||||
.source "somefile.java"
|
||||
.line 101
|
||||
|
||||
nop
|
||||
|
||||
|
||||
.line 50
|
||||
|
||||
.local v0, aNumber:I
|
||||
const v0, 1234
|
||||
.end local v0
|
||||
|
||||
.source "someotherfile.java"
|
||||
.line 900
|
||||
|
||||
const-string v0, "1234"
|
||||
|
||||
.restart local v0
|
||||
const v0, 6789
|
||||
.end local v0
|
||||
|
||||
.epilogue
|
||||
|
||||
.end method
|
||||
Loading…
Add table
Add a link
Reference in a new issue