-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better debug to strings for structures and added scope to expressions.
Related to #186
- Loading branch information
jurcovicovam
committed
Jun 21, 2014
1 parent
4928723
commit 6bf9ad3
Showing
7 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/github/sommeri/less4j/core/ast/IScopeAware.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.github.sommeri.less4j.core.ast; | ||
|
||
import com.github.sommeri.less4j.core.ast.annotations.NotAstProperty; | ||
import com.github.sommeri.less4j.core.compiler.scopes.IScope; | ||
|
||
/** | ||
* Contains scope associated with the node. It would be much more cleaner if | ||
* the solution would keep ast completely independent from scope. That being said, | ||
* I did not found such clean solution that would not be also fragile or too | ||
* complicated or required too much boiler plate like code. | ||
* | ||
*/ | ||
public interface IScopeAware { | ||
|
||
@NotAstProperty | ||
IScope getScope(); | ||
|
||
@NotAstProperty | ||
void setScope(IScope scope); | ||
|
||
@NotAstProperty | ||
boolean hasScope(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters