{
    "content": [
        {
            "type": "text",
            "text": "# Specio::DeclaredAt (perldoc)\n\n## NAME\n\nSpecio::DeclaredAt - A class to represent where a type or coercion was declared\n\n## SYNOPSIS\n\nmy $declared = Specio::DeclaredAt->newfromcaller(1);\nprint $declared->description;\n\n## DESCRIPTION\n\nThis class provides a thin wrapper around some of the return values from Perl's \"caller\"\nbuilt-in. It's used internally to identify where types and coercions are being declared, which\nis useful when generating error messages.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **API**\n- **SUPPORT**\n- **SOURCE**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Specio::DeclaredAt",
        "section": "",
        "mode": "perldoc",
        "summary": "Specio::DeclaredAt - A class to represent where a type or coercion was declared",
        "synopsis": "my $declared = Specio::DeclaredAt->newfromcaller(1);\nprint $declared->description;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "API",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SOURCE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 8,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Specio::DeclaredAt - A class to represent where a type or coercion was declared\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 0.47\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $declared = Specio::DeclaredAt->newfromcaller(1);\n\nprint $declared->description;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class provides a thin wrapper around some of the return values from Perl's \"caller\"\nbuilt-in. It's used internally to identify where types and coercions are being declared, which\nis useful when generating error messages.\n",
                "subsections": []
            },
            "API": {
                "content": "This class provides the following methods.\n\nSpecio::DeclaredAt->newfromcaller($depth)\nGiven a call stack depth, this method returns a new \"Specio::DeclaredAt\" object.\n\n$declaredat->package, $declaredat->filename, $declaredat->line\nReturns the call stack information recorded when the object was created. These values are always\npopulated.\n\n$declaredat->subroutine\nReturns the subroutine from the call stack. This may be an \"udnef\"\n\n$declaredat->hassubroutine\nReturns true if there is a subroutine name associated with this object.\n\n$declaredat->description\nPuts all the information together into a single string like \"declared in package Foo::Bar\n(.../Foo/Bar.pm) at line 42 in sub named blah\".\n",
                "subsections": []
            },
            "SUPPORT": {
                "content": "Bugs may be submitted at <https://github.com/houseabsolute/Specio/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
                "subsections": []
            },
            "SOURCE": {
                "content": "The source code repository for Specio can be found at <https://github.com/houseabsolute/Specio>.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Dave Rolsky <autarch@urth.org>\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "This software is Copyright (c) 2012 - 2021 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
                "subsections": []
            }
        }
    }
}