Catrobat.IDE.Core.Formulas.FormulaInterpreter.InterpretNonParameter C# (CSharp) Метод

InterpretNonParameter() приватный Метод

Ensures there are no occurences of FormulaTokenParameterSeparator.
private InterpretNonParameter ( IEnumerable tokens ) : IEnumerable
tokens IEnumerable
Результат IEnumerable
        private IEnumerable<IFormulaToken> InterpretNonParameter(IEnumerable<IFormulaToken> tokens)
        {
            foreach (var token in tokens)
            {
                if (token is FormulaTokenParameterSeparator)
                {
                    SetParsingError(token, AppResourcesHelper.Get("FormulaInterpreter_Brackets_NonArgumentParameterSeparator"));
                    yield break;
                }
                yield return token;
            }
        }