22 lines
462 B
Python
22 lines
462 B
Python
|
|
from vsg.vhdlFile.classify import array_constraint
|
|
from vsg.vhdlFile.classify import record_constraint
|
|
|
|
|
|
def detect(iToken, lObjects):
|
|
'''
|
|
element_constraint ::=
|
|
array_constraint
|
|
| record_constraint
|
|
'''
|
|
|
|
iReturn = array_constraint.detect(iToken, lObjects)
|
|
if iReturn != iToken:
|
|
return iReturn
|
|
|
|
iReturn = record_constraint.detect(iToken, lObjects)
|
|
if iReturn != iToken:
|
|
return iReturn
|
|
|
|
return iToken
|