22 lines
453 B
Python
22 lines
453 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg.vhdlFile.classify import array_constraint, 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
|