• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PhosphorLang / PhosphorCompiler / 6998409639

26 Nov 2023 10:29PM UTC coverage: 64.861% (-0.02%) from 64.878%
6998409639

push

github

BenediktMagnus
Fixed the interpreter not getting function call results.

467 of 883 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 2 files covered. (0.0%)

2023 of 2956 relevant lines covered (68.44%)

54.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/interpreter/functionStack.ts
1
import * as IntermediateSymbols from '../lowerer/intermediateSymbols';
2
import * as InterpreterValues from './interpreterValues';
3

4
export type ParameterIndexToValue = Map<number, InterpreterValues.Any>;
5
export type ReturnIndexToValue = Map<number, InterpreterValues.Any>;
6
export type VariablesMap = Map<IntermediateSymbols.Variable, InterpreterValues.Any>;
7

8
export class FunctionStack
×
9
{
10
    public takableParameters: ParameterIndexToValue;
11
    public givenParameters: ParameterIndexToValue;
12
    public returnValues: ReturnIndexToValue;
13
    public callResults: ReturnIndexToValue;
14

15
    public localVariables: VariablesMap;
16
    public compareOperands: [leftOperand: IntermediateSymbols.Variable, rightOperand: IntermediateSymbols.Variable] | null;
17

18
    constructor (takableParameters: ParameterIndexToValue = new Map())
×
19
    {
20
        this.takableParameters = takableParameters;
×
21
        this.givenParameters = new Map();
×
22
        this.returnValues = new Map();
×
NEW
23
        this.callResults = new Map();
×
24

25
        this.localVariables = new Map();
×
26
        this.compareOperands = null;
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc