/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
utils/tree_sitter/testdata/string/self_parameter.carbon
11 строк
345 B
Chandler Carruth
Update tree_sitter for the new `self` syntax and `static var` (#7025)
06 апр 2026, 22:31
Не верифицирован
06 апр 2026, 22:31
8fd4156
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception class Point { var x: i32; fn GetX(self: Point) -> i32 { return self.x; } fn GetY(self) -> i32 { return 0; } fn SetX(ref self, new_x: i32) {} }