Ejemplo n.º 1
0
        internal UnityTypeDefinition(TypeDefinitionRaw rawTypeDefinition)
        {
            Name            = rawTypeDefinition.name;
            QualifiedName   = rawTypeDefinition.qualifiedName;
            EnumDefinitions = rawTypeDefinition.enumDefinitions;
            TypeDefinitions = rawTypeDefinition.typeDefinitions != null
                ? rawTypeDefinition.typeDefinitions.Select(raw => new UnityTypeDefinition(raw)).ToList()
                : new List <UnityTypeDefinition>();

            FieldDefinitions = rawTypeDefinition.fieldDefinitions != null
                ? rawTypeDefinition.fieldDefinitions
                               .Select(rawFieldDefinition => new UnityFieldDefinition(rawFieldDefinition)).ToList()
                : new List <UnityFieldDefinition>();

            SourceReference          = rawTypeDefinition.sourceReference;
            IsBlittable              = false;
            IsEventPayload           = false;
            IsCommandRequestPayload  = false;
            IsCommandResponsePayload = false;
        }
Ejemplo n.º 2
0
 private bool SourceReferenceEquals(SourceReferenceRaw sourceRef1, SourceReferenceRaw sourceRef2)
 {
     return(sourceRef1.column == sourceRef2.column && sourceRef1.line == sourceRef2.line);
 }