예제 #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
        private syntaxBlockLineDeclaration _addTwoTokenNewLine(String typeName, String valueFormat, String name, syntaxBlockLineType render)
        {
            var output = new syntaxBlockLineDeclaration();

            //output.name = name;
            output.setAlias(name);
            output.render    = render;
            output.className = _lineClass;
            var tkn0 = new syntaxTokenDeclaration();

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

            var tkn1 = new syntaxTokenDeclaration();

            tkn1.name        = "value";
            tkn1.typeName    = typeName;
            tkn1.valueFormat = valueFormat;
            output.tokens.Add(tkn1);

            _current = output;
            Add(output);
            return(output);
        }