update to use new set of SourceX classes

This commit is contained in:
Dave Holoway
2020-06-13 15:16:35 +01:00
parent f4a18ebcdc
commit da8d37aafd
12 changed files with 244 additions and 171 deletions

View File

@@ -331,6 +331,10 @@ class DeclaredVariableBlock extends DeclarationBlock {
return this.varBlock ? this.varBlock.name : '';
}
get name_token() {
return this.varBlock ? this.varBlock.name_token : null;
}
get type() {
return this.varBlock ? this.varBlock.type : '';
}
@@ -475,6 +479,10 @@ class MethodBlock extends MCBlock {
return this.varBlock.name;
}
get name_token() {
return this.varBlock.name_token;
}
get type() {
return this.varBlock.type + (this.postNameArrToken ? this.postNameArrToken.source : '');
}