Skip to content

Commit

Permalink
small var naming tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Jan 16, 2022
1 parent d00fae9 commit 1bcd137
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/files/BrsFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -958,15 +958,15 @@ export class BrsFile {
for (let scope of scopes) {
let enumMap = scope.getEnumMap();
for (const key of [...enumMap.keys()]) {
let es = enumMap.get(key).item;
if (completionName.startsWith(es.fullName) && completionName.length > es.fullName.length) {
let enumStmt = enumMap.get(key).item;
if (completionName.startsWith(enumStmt.fullName) && completionName.length > enumStmt.fullName.length) {

for (const esm of es.getMembers()) {
const name = es.fullName + '.' + esm.name;
for (const member of enumStmt.getMembers()) {
const name = enumStmt.fullName + '.' + member.name;
if (name.startsWith(completionName)) {
if (!results.has(name)) {
results.set(name, {
label: esm.name,
label: member.name,
kind: CompletionItemKind.EnumMember
});

Expand Down

0 comments on commit 1bcd137

Please sign in to comment.