/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/javascript/class-method_feature.test
59 строк
1 KB
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
class Test { foo( x, y = 0) {} async bar(x, y = 0 ) {} $ ( ) {} awaitFoo(){} } ---------------------------------------------------- [ ["keyword", "class"], ["class-name", ["Test"]], ["punctuation", "{"], ["function", "foo"], ["punctuation", "("], ["parameter", [ "x", ["punctuation", ","], " y ", ["operator", "="], ["number", "0"] ]], ["punctuation", ")"], ["punctuation", "{"], ["punctuation", "}"], ["keyword", "async"], ["function", "bar"], ["punctuation", "("], ["parameter", [ "x", ["punctuation", ","], " y ", ["operator", "="], ["number", "0"] ]], ["punctuation", ")"], ["punctuation", "{"], ["punctuation", "}"], ["function", "$"], ["punctuation", "("], ["punctuation", ")"], ["punctuation", "{"], ["punctuation", "}"], ["function", "awaitFoo"], ["punctuation", "("], ["punctuation", ")"], ["punctuation", "{"], ["punctuation", "}"], ["punctuation", "}"] ] ---------------------------------------------------- Checks for class methods.