Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4199e17

Browse files
committed
Add FileOptions#isImported
1 parent 6395f59 commit 4199e17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/projects/fileopts.iced

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ class FileOptions
4343
Object.defineProperty @::, 'destRelPath',
4444
get: -> Path.join(@outputDir, (@outputNameMask and @outputNameForMask(@outputNameMask) or "<none>"))
4545

46+
Object.defineProperty @::, 'isImported',
47+
get: -> @project.imports.hasIncomingEdges(@path)
48+
4649
setMemento: (@memento) ->
4750
@exists = @memento.exists ? null
4851

0 commit comments

Comments
 (0)