Skip to content

Commit

Permalink
goto parent
Browse files Browse the repository at this point in the history
support goto definition on parent reference selector
  • Loading branch information
darrenkopp committed Feb 14, 2014
1 parent 4468615 commit 70ce95d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SassyStudio.Editor;

namespace SassyStudio.Compiler.Parsing.Selectors
{
public class ParentReferenceSelector : SimpleSelector
public class ParentReferenceSelector : SimpleSelector, IResolvableToken
{
public TokenItem Ampersand { get; protected set; }

Expand All @@ -17,5 +18,10 @@ protected override bool ParseSelectorToken(IItemFactory itemFactory, ITextProvid

return Children.Count > 0;
}

public ParseItem GetSourceToken()
{
return Parent.Parent.Parent.Parent;
}
}
}

0 comments on commit 70ce95d

Please sign in to comment.