800 lines
28 KiB
Text
800 lines
28 KiB
Text
[
|
|
{"type":"Keyword","value":"package"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameNamespace","value":"X"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"import"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameNamespace","value":"A"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"import"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameNamespace","value":"B.*"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"main"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"args"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Array"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":"\u003e)"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"` + \"with spaces\" + `"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringDouble","value":"\"hello\""},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"multiline"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralString","value":"\"\"\"1\n2\"\"\""},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"StringBuilder"},
|
|
{"type":"Punctuation","value":"()."},
|
|
{"type":"Name","value":"apply"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"append"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"multiline"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"unsigned"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"0x00UL"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"123u"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"76.54"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentMultiline","value":"/*\n*/"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"nullable"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"nullable"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":"?):"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"nullable"},
|
|
{"type":"Operator","value":"?."},
|
|
{"type":"Name","value":"length"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"?:"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"0"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"nullable2"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"nullable"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":"?):"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"nullable"},
|
|
{"type":"Operator","value":"?."},
|
|
{"type":"Name","value":"length"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"?:"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"run"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"LiteralNumber","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"2"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"rawStringWithQuotes"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralString","value":"\"\"\"\nHello \"example\" "},
|
|
{"type":"LiteralStringInterpol","value":"${1 + 2}"},
|
|
{"type":"LiteralString","value":"\nAnd now { Just the braces }\nEscapes here don't work so this is just text \\t \\n \\u1234 $ \\$\n\"\"\""},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"returnsSomething"},
|
|
{"type":"Punctuation","value":"():"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"return"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringDouble","value":"\"\""},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"length"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"returnsSomethingElse"},
|
|
{"type":"Punctuation","value":"():"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringDouble","value":"\""},
|
|
{"type":"LiteralStringEscape","value":"\\\\\\n"},
|
|
{"type":"LiteralStringDouble","value":"\""},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"length"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"character"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringChar","value":"'\"'"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"escapedCharacter"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringChar","value":"'\\\"'"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"// escaping a double quote character inside a character is optional\n"},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"stringWithSingleQuote"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringDouble","value":"\"'\""},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"typealias"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"MySecretAlias"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"A"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"B"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"A"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"B"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Unit"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"impl"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"MySecretAlias"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"_"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Unit"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"someOperators"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"var"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"c"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"123"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"println"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringDouble","value":"\"This is an example a = "},
|
|
{"type":"LiteralStringInterpol","value":"$a"},
|
|
{"type":"LiteralStringDouble","value":" and the sum is "},
|
|
{"type":"LiteralStringInterpol","value":"${a + b}"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"LiteralStringInterpol","value":"${ A.foo() }"},
|
|
{"type":"LiteralStringDouble","value":"\""},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"println"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"println"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"c"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"in"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n \n "},
|
|
{"type":"NameClass","value":"Logger"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"info"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringDouble","value":"\"Hello World\""},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n \n "},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"%="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"2"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u0026\u0026"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"2"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Operator","value":"++"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Operator","value":"+="},
|
|
{"type":"LiteralNumber","value":"2"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Operator","value":"--"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Operator","value":"-="},
|
|
{"type":"LiteralNumber","value":"1"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"/="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"2"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003c="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003e="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"nullable"},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"!="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Operator","value":"?."},
|
|
{"type":"Name","value":"foo"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"Name","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"?:"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"b"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"B"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"CommentSingle","value":"// no braces\n"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"data"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"C"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"s"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"moreOperators"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"arg"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Any"},
|
|
{"type":"Punctuation","value":"?)"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"when"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"arg"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Operator","value":"!is"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"is"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Number"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"in"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"emptyList"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":"\u003e()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"if"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"arg"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"!=="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Boolean"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n \t"},
|
|
{"type":"Name","value":"println"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"arg"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"==="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Unit"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameDecorator","value":"@Target"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameClass","value":"AnnotationTarget"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"CLASS"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"AnnotationTarget"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"FUNCTION"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameClass","value":"AnnotationTarget"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"VALUE_PARAMETER"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"AnnotationTarget"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"EXPRESSION"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameDecorator","value":"@Retention"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameClass","value":"AnnotationRetention"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"SOURCE"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"annotation"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Annotated"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameDecorator","value":"@Annotated"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"A"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameDecorator","value":"@Annotated"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"a"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameDecorator","value":"@Annotated"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"param"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"NameDecorator","value":"@Annotated"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"y"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"0"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"open"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"TUpper"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameClass","value":"T"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"TUpper"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"R"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Any"},
|
|
{"type":"Punctuation","value":"?\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"generic"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"123"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Holder"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Keyword","value":"in"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"A"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"out"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"B"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"C"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"TUpper"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Holder2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"T"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"var"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"holder1"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Holder"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"*\u003e?"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"null"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Some"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"val"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"holder2"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Holder"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"*\u003e?"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"null"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"var"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"holder3"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Holder"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"*\u003e?"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"null"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"example"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"var"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameProperty","value":"holder4"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Holder"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"Int"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"String"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"*\u003e?"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"null"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameClass","value":"T"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Comparable"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameClass","value":"T"},
|
|
{"type":"Punctuation","value":"\u003e\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"sort"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"list"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"List"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Name","value":"T"},
|
|
{"type":"Punctuation","value":"\u003e)"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n \n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"X"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"companion"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"object"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"suspend"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"inline"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"fun"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Keyword","value":"reified"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"T"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"generic"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"t"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"T"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"print"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"T"},
|
|
{"type":"Operator","value":"::"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"Name","value":"simpleName"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"CommentSingle","value":"// eof comment"}
|
|
]
|