예제 #1
0
 private void SetCurrentUserDefinedFunctionInfo(string name, int parameterCount)
 {
     currentUserDefinedFunctionInfo = DTO.UserDefinedFunctionInfoList.Find(func =>
         func.Name == name && func.ParameterCount == parameterCount);
 }
예제 #2
0
        private void InitHelpers()
        {
            addToProgram = true;
            lastCompiledAssign = null;

            isOperatorUnaryPrefix = false;
            isCompilingAssignmentTarget = false;
            isSelectorsFirstCompile = true;
            isCurrentCompiledTheMainProgram = true;

            lazyEvaluationJumpStack = new System.Collections.Generic.Stack<Jump>();
            jumpStack = new System.Collections.Generic.Stack<Jump>();

            conditionCount = 0;
            lineLengthList = SourceInfoUtils.FindLineLengths(Source);

            currentGlobalVariableInfo = null;
            currentUserDefinedFunctionInfo = null;
        }