mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 18:08:29 +00:00
improve code completion list
add method parameters order list items by scope
This commit is contained in:
@@ -35,7 +35,7 @@ class MemberExpression extends Expression {
|
||||
}
|
||||
|
||||
if (instance instanceof PackageNameType) {
|
||||
this.dot.loc = `fqdi:${instance.package_name}`;
|
||||
this.dot.loc = { key: `fqdi:${instance.package_name}` };
|
||||
if (!this.member) {
|
||||
return instance;
|
||||
}
|
||||
@@ -50,9 +50,9 @@ class MemberExpression extends Expression {
|
||||
: AnyType.Instance;
|
||||
}
|
||||
|
||||
let loc = `fqi`;
|
||||
let loc_key = `fqi`;
|
||||
if (instance instanceof TypeIdentType) {
|
||||
loc = 'fqs';
|
||||
loc_key = 'fqs';
|
||||
instance = instance.type;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class MemberExpression extends Expression {
|
||||
return AnyType.Instance;
|
||||
}
|
||||
|
||||
this.dot.loc = `${loc}:${instance.typeSignature}`
|
||||
this.dot.loc = { key: `${loc_key}:${instance.typeSignature}` };
|
||||
if (!this.member) {
|
||||
ri.problems.push(ParseProblem.Error(this.dot, `Identifier expected`));
|
||||
return instance;
|
||||
|
||||
Reference in New Issue
Block a user