Debian Codegraph @

gcc/d/dmd/typinf.h

raw
1
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2025 by The D Language Foundation, All Rights Reserved
4 * written by Walter Bright
5 * https://www.digitalmars.com
6 * Distributed under the Boost Software License, Version 1.0.
7 * https://www.boost.org/LICENSE_1_0.txt
8 * https://github.com/dlang/dmd/blob/master/src/dmd/typinf.h
9 */
10
11 #pragma once
12
13 #include "globals.h"
14
15 class Expression;
16 class Type;
17 class TypeAArray;
18 class TypeInfoDeclaration;
19 struct Scope;
20
21 namespace dmd
22 {
23 bool genTypeInfo(Expression *e, Loc loc, Type *torig, Scope *sc);
24 bool isSpeculativeType(Type *t);
25 bool builtinTypeInfo(Type *t);
26 Type *makeNakedAssociativeArray(TypeAArray *t);
27 TypeInfoDeclaration *getTypeInfoAssocArrayDeclaration(TypeAArray *t, Scope *sc);
28 }
29 Type *getTypeInfoType(Loc loc, Type *t, Scope *sc);