Пример #1
0
        public syntaxBlockLineDeclaration addNewBlockLine(String __name, syntaxLineClassDeclaration cl)
        {
            var output = new syntaxBlockLineDeclaration();

            output.name      = __name;
            output.render    = syntaxBlockLineType.block;
            output.className = cl.name;

            var tkn0 = new syntaxTokenDeclaration();

            tkn0.name     = "name";
            tkn0.typeName = "String";
            output.tokens.Add(tkn0);

            var tkn1 = new syntaxTokenDeclaration();

            tkn1.name     = "source";
            tkn1.typeName = "codeBlock";

            output.tokens.Add(tkn1);

            _current = output;
            Add(output);
            return(output);
            //return _addTwoTokenNewLine("String", __customFormat, __name, syntaxBlockLineType.custom);
        }
Пример #2
0
 public void setLineClass(syntaxLineClassDeclaration cl)
 {
     _lineClass = cl.name;
 }