All files MethodSymbol.ts

100% Statements 26/26
100% Branches 2/2
100% Functions 1/1
100% Lines 26/26

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 271x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 1x 19421x 19421x 19421x  
/*
 * This file is released under the MIT license.
 * Copyright (c) 2023, Mike Lischke
 *
 * See LICENSE file for more info.
 */
 
import { RoutineSymbol } from "./RoutineSymbol";
 
export enum MethodFlags {
    None = 0,
    Virtual = 1,
    Const = 2,
    Overwritten = 4,
 
    /** Distinguished by the return type. */
    SetterOrGetter = 8,
 
    /** Special flag used e.g. in C++ for explicit c-tors. */
    Explicit = 16,
}
 
/** A function which belongs to a class or other outer container structure. */
export class MethodSymbol extends RoutineSymbol {
    public methodFlags = MethodFlags.None;
}