Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
d79227fe
Commit
d79227fe
authored
Oct 09, 2014
by
Paweł Szostek
Committed by
Javier D. Garcia-Lasheras
Oct 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assert contructor types
parent
18ab5b78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dep_file.py
hdlmake/dep_file.py
+4
-0
No files found.
hdlmake/dep_file.py
View file @
d79227fe
...
...
@@ -25,14 +25,18 @@ from util import path as path_mod
class
DepRelation
(
object
):
# direction
PROVIDE
=
1
USE
=
2
# rel_type
ENTITY
=
1
PACKAGE
=
2
INCLUDE
=
3
def
__init__
(
self
,
obj_name
,
direction
,
rel_type
):
assert
direction
in
[
DepRelation
.
PROVIDE
,
DepRelation
.
USE
]
assert
rel_type
in
[
DepRelation
.
ENTITY
,
DepRelation
.
PACKAGE
,
DepRelation
.
INCLUDE
]
self
.
direction
=
direction
self
.
rel_type
=
rel_type
self
.
obj_name
=
obj_name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment