mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
* adding methods to the ast * pre commit stuff? * implementation of class functions * implemented methods * some cleanup * more cleanup * add newlines in test programs * pre-commit fixups * added include of return_term.h * a test of a method calling another method * replacing Member with Declaration * removing the member.h etc files * clarify a type annotation * update uses of FunctionDeclaration * remove ReturnTarget, no longer needed * more cleanup * more cleanup * yet more cleanup, playing with pre-commit * did a pre-commit run --all-files * fixed const issue * remove comment * checking dependencies in BUILD files and headers * pre-commit working now * refactor NominalClassType to just hold a pointer to the class declaration * remove Member from rtti * responding to Geoffreys review * change field_types to a non-member function
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
# 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
|
|
|
|
root class AstNode;
|
|
abstract class Pattern : AstNode;
|
|
class AutoPattern : Pattern;
|
|
class BindingPattern : Pattern;
|
|
class TuplePattern : Pattern;
|
|
class AlternativePattern : Pattern;
|
|
class ExpressionPattern : Pattern;
|
|
abstract class Declaration : AstNode;
|
|
class FunctionDeclaration : Declaration;
|
|
class ClassDeclaration : Declaration;
|
|
class ChoiceDeclaration : Declaration;
|
|
class VariableDeclaration : Declaration;
|
|
class GenericBinding : AstNode;
|
|
class AlternativeSignature : AstNode;
|
|
abstract class Statement : AstNode;
|
|
class ExpressionStatement : Statement;
|
|
class Assign : Statement;
|
|
class VariableDefinition : Statement;
|
|
class If : Statement;
|
|
class Return : Statement;
|
|
class Block : Statement;
|
|
class While : Statement;
|
|
class Break : Statement;
|
|
class Continue : Statement;
|
|
class Match : Statement;
|
|
class Continuation : Statement;
|
|
class Run : Statement;
|
|
class Await : Statement;
|
|
abstract class Expression : AstNode;
|
|
class BoolTypeLiteral : Expression;
|
|
class BoolLiteral : Expression;
|
|
class CallExpression : Expression;
|
|
class FunctionTypeLiteral : Expression;
|
|
class FieldAccessExpression : Expression;
|
|
class IndexExpression : Expression;
|
|
class IntTypeLiteral : Expression;
|
|
class ContinuationTypeLiteral : Expression;
|
|
class IntLiteral : Expression;
|
|
class PrimitiveOperatorExpression : Expression;
|
|
class StringLiteral : Expression;
|
|
class StringTypeLiteral : Expression;
|
|
class TupleLiteral : Expression;
|
|
class StructLiteral : Expression;
|
|
class StructTypeLiteral : Expression;
|
|
class TypeTypeLiteral : Expression;
|
|
class IdentifierExpression : Expression;
|
|
class IntrinsicExpression : Expression;
|
|
class UnimplementedExpression : Expression;
|