Skip to content

<References> are ignored #231

@Hevgen

Description

@Hevgen

Sample source xml (part od source file):
` <opc:ObjectType
SymbolicName="ResourceManagerType"
BaseType="di:DeviceType"
IsAbstract="false"
SupportsEvents="true"
>
opc:Children
<opc:Object SymbolicName="di:ParameterSet" TypeDefinition="ResourceManagerTypeParameterSet" ModellingRule="Mandatory">
</opc:Object>

		<opc:Object SymbolicName="di:MethodSet" TypeDefinition="ResourceManagerTypeMethodSet" ModellingRule="Mandatory">
		</opc:Object>

		<opc:Variable SymbolicName="myCoreTypes:Enabled" DataType="ua:Boolean" ValueRank="Scalar" AccessLevel="Read" ModellingRule="Mandatory" >
			<opc:DefaultValue>
				<uax:Boolean>False</uax:Boolean>
			</opc:DefaultValue>
		</opc:Variable>

		<opc:Method SymbolicName="Enable" ModellingRule="Mandatory" />
		<opc:Method SymbolicName="Disable" ModellingRule="Mandatory" />
	</opc:Children>

	<opc:References>
		<opc:Reference IsInverse="false">
			<opc:ReferenceType>ua:HasInterface</opc:ReferenceType>
			<opc:TargetId>myCoreTypes:IEnablable</opc:TargetId>
		</opc:Reference>
		<opc:Reference IsInverse="false">
			<opc:ReferenceType>ua:GeneratesEvent</opc:ReferenceType>
			<opc:TargetId>myCoreTypes:OperationCompletedEventType</opc:TargetId>
		</opc:Reference>
	</opc:References>
</opc:ObjectType>

`

Compilation is done without errors. Used in an application it produces an address-space with object type ResourceManagerType without both refrences HasInterface and GeneratesEvent. Only HasComponent references are present.

Image

It worked properly in some previous versions of the tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions