summaryrefslogtreecommitdiff
path: root/src/msil/ch/epfl/lamp/compiler/msil/util/PECustomMod.java
blob: 56519e8487a1662086537be3542bdc8b00e096de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package ch.epfl.lamp.compiler.msil.util;

import ch.epfl.lamp.compiler.msil.Type;
import ch.epfl.lamp.compiler.msil.CustomModifier;

/**
 * A PECustomMod holds the info parsed from metadata per the CustomMod production in Sec. 23.2.7, Partition II.
 * */
public final class PECustomMod {

    public final Type marked;
    public final CustomModifier[] cmods;

    /** Terminology:
        the CustomModifier(s) are markers,
        and the msil.Type is a type marked by those markers. */
    public PECustomMod(Type marked, CustomModifier[] cmods) {
      this.marked = marked;
      this.cmods = cmods;
    }

}