mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
replace Locals with scopeable MethodDeclarations to allow labels and types to be stored
This commit is contained in:
@@ -55,6 +55,18 @@ class TokenList {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current token matches the specified kind and consumes it
|
||||
* @param {string} kind
|
||||
*/
|
||||
isKind(kind) {
|
||||
if (this.current && this.current.kind === kind) {
|
||||
this.inc();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current token matches the specified value and consumes it or reports an error
|
||||
* @param {string} value
|
||||
|
||||
Reference in New Issue
Block a user