polymer-analyzer
Version:
Static analysis for Web Components
356 lines (355 loc) • 8.03 kB
JSON
{
"schema_version": "1.0.0",
"elements": [
{
"tagname": "simple-element",
"description": "This is a description of the element.",
"summary": "",
"superclass": "HTMLElement",
"path": "simple-element.html",
"privacy": "public",
"attributes": [
{
"name": "the-value",
"description": "This is a simple test property named theValue.",
"sourceRange": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 12,
"column": 7
}
},
"type": "string",
"metadata": {}
}
],
"properties": [
{
"name": "theValue",
"type": "string",
"description": "This is a simple test property named theValue.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 12,
"column": 7
}
},
"metadata": {
"polymer": {
"notify": true
}
}
},
{
"name": "_protectedValue",
"type": "string",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 29
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "__privateValue",
"type": "string",
"description": "",
"privacy": "private",
"sourceRange": {
"start": {
"line": 14,
"column": 6
},
"end": {
"line": 14,
"column": 28
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "closureStyleTrailingUnderscoresArePrivate_",
"type": "string",
"description": "",
"privacy": "private",
"sourceRange": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 56
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "_looksProtectedButActuallyPublic",
"type": "string",
"description": "",
"privacy": "public",
"sourceRange": {
"start": {
"line": 17,
"column": 6
},
"end": {
"line": 17,
"column": 46
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "looksPublicButActuallyProtected",
"type": "string",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 45
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "looksPublicButActuallyPrivate",
"type": "string",
"description": "",
"privacy": "private",
"sourceRange": {
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 21,
"column": 43
}
},
"metadata": {
"polymer": {}
}
}
],
"methods": [
{
"name": "customFunction",
"description": "",
"privacy": "public",
"sourceRange": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 39
}
},
"params": [
{
"name": "a"
},
{
"name": "b"
}
],
"metadata": {}
},
{
"name": "_customProtectedFunction",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 49
}
},
"params": [
{
"name": "a"
},
{
"name": "b"
}
],
"metadata": {}
},
{
"name": "__customPrivateFunction",
"description": "",
"privacy": "private",
"sourceRange": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 48
}
},
"params": [
{
"name": "a"
},
{
"name": "b"
}
],
"metadata": {}
},
{
"name": "customFunctionWithJsDoc",
"description": "This is the description.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 61
}
},
"params": [
{
"name": "a",
"type": "Number"
},
{
"name": "b",
"type": "Number"
}
],
"return": {
"type": "boolean"
},
"metadata": {}
},
{
"name": "_customProtectedFunctionWithJsDoc",
"description": "This is a protected method.",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 71
}
},
"params": [
{
"name": "a",
"type": "Number"
},
{
"name": "b",
"type": "Number"
}
],
"return": {
"type": "boolean"
},
"metadata": {}
},
{
"name": "__customPrivateFunctionWithJsDoc",
"description": "This is a private method.",
"privacy": "private",
"sourceRange": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 70
}
},
"params": [
{
"name": "a",
"type": "Number"
},
{
"name": "b",
"type": "Number"
}
],
"return": {
"type": "boolean"
},
"metadata": {}
}
],
"staticMethods": [],
"styling": {
"cssVariables": [],
"selectors": []
},
"demos": [],
"slots": [],
"events": [
{
"name": "the-value-changed",
"description": "Fired when the `theValue` property changes.",
"type": "CustomEvent",
"metadata": {}
}
],
"metadata": {},
"sourceRange": {
"start": {
"line": 4,
"column": 10
},
"end": {
"line": 51,
"column": 3
}
}
}
]
}