mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
15 lines
353 B
Python
15 lines
353 B
Python
from langkit.dsl import ASTNode, T, abstract
|
|
from langkit.expressions import PropertyError, langkit_property
|
|
|
|
|
|
@abstract
|
|
class FooNode(ASTNode):
|
|
|
|
@langkit_property(public=True, return_type=T.FooNode.entity.array)
|
|
def prop():
|
|
return PropertyError(T.FooNode.entity.array, "this is an eror")
|
|
|
|
|
|
class Example(FooNode):
|
|
token_node = True
|