mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
add SourceInitialiser support
This commit is contained in:
@@ -504,6 +504,15 @@ class InitialiserBlock extends DeclarationBlock {
|
||||
constructor(section, simplified, match) {
|
||||
super(section, simplified);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TextBlock associated with the method body
|
||||
*/
|
||||
body() {
|
||||
// always the last block atm
|
||||
const blocks = this.blockArray();
|
||||
return blocks.blocks[blocks.blocks.length - 1];
|
||||
}
|
||||
}
|
||||
|
||||
class TypeDeclBlock extends DeclarationBlock {
|
||||
@@ -601,6 +610,11 @@ class TypeDeclBlock extends DeclarationBlock {
|
||||
return this.parsed.constructors;
|
||||
}
|
||||
|
||||
get initialisers() {
|
||||
this._ensureParsed();
|
||||
return this.parsed.initialisers;
|
||||
}
|
||||
|
||||
get types() {
|
||||
this._ensureParsed();
|
||||
return this.parsed.types;
|
||||
|
||||
Reference in New Issue
Block a user