Type

NAME

Doc::Type - Used to represent different types in a typegraph

SYNOPSIS

use Doc::Type;
# create and name it
    my $type = Doc::Type.new(:name("Rat"));
# add some properties
    $type.super.push(["Any", "Mu", "Numeric"]);
    $type.roles.push(["Role1", "Role2"]);
# and get its MRO!
    say $type.mro;

DESCRIPTION

Doc::Type represents a type in the Raku language. It stores its parent classes and the role it's implementing. In addition, it also stores the inverted relation, that's to say: all types inheriting from this one, and if it's a role, all types implementing it.

AUTHOR

Moritz Lenz <@moritz> Antonio Gámiz <@antoniogamiz>

COPYRIGHT AND LICENSE

This module has been spun off from the official Raku documentation repository, check it out for past history of this code..

Copyright 2019 Moritz and Antonio Gámiz. This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Doc::TypeGraph v2.2.1.1

Parse a type graph description file

Authors

  • AntonioGamiz
  • moritz
  • JJ Merelo
  • Raku team

License

Artistic-2.0

Dependencies

dot:from<bin>

Test Dependencies

Provides

  • Doc::Type
  • Doc::TypeGraph
  • Doc::TypeGraph::Decl
  • Doc::TypeGraph::DeclActions
  • Doc::TypeGraph::Viz

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.