示例#1
0
        /// <summary>
        /// Hebben we een functiedeclaratie bovenop de stack
        /// Eraf halen
        /// Dit is weer reachable
        /// </summary>
        /// <param name="l"></param>
        public void Visit(EndFunctionDeclaration l)
        {
            Reachable();
            if (CheckGeneric(l))
            {
                return;
            }

            // Expressie gevonden?
            if (l.Param != String.Empty)
            {
                _errors.Add(new UnexpectedInputException(l.SourceCodeContext, l.Param));
            }

            if (_tomatch.Count > 0 &&
                (_tomatch[_tomatch.Count - 1] is FunctionDeclaration))
            {
                _tomatch.RemoveAt(_tomatch.Count - 1);
            }
            else
            {
                _errors.Add(new EndFunctionNotMatchedException(l.SourceCodeContext));
            }
        }
示例#2
0
 public void Visit(EndFunctionDeclaration l)
 {
     _level -= _templatetabs;
     Format(l);
 }
示例#3
0
 public void Visit(EndFunctionDeclaration l)
 {
     VisitStatementComment(l);
 }