Skip to content

Commit

Permalink
Calculate position for Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Oct 26, 2016
1 parent b561bbf commit 33a1e04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export function parseDocument(document: TextDocument, offset: number = null, set

symbols.variables = symbols.variables.map((x) => {
x.position = document.positionAt(x.offset);

return x;
});
symbols.mixins = symbols.mixins.map((x) => {
x.position = document.positionAt(x.offset);

return x;
});
symbols.functions = symbols.functions.map((x) => {
x.position = document.positionAt(x.offset);
return x;
});

Expand Down

0 comments on commit 33a1e04

Please sign in to comment.