Ejemplo n.º 1
0
    public EdMetaCommentsParser(string code)
    {
        int endOf = MetaComments.FindMetaComments(code);

        if (endOf == 0)
        {
            return;
        }
        EndOfMetaComments = endOf;
        foreach (var t in MetaComments.EnumOptions(code, endOf))
        {
            _ParseOption(t.Name(), t.Value());
        }
    }
Ejemplo n.º 2
0
    public MetaCommentsParser(string code)
    {
        var meta = MetaComments.FindMetaComments(code);

        if (meta.end == 0)
        {
            return;
        }
        MetaRange = meta;
        foreach (var t in MetaComments.EnumOptions(code, meta))
        {
            _ParseOption(t.Name(), t.Value());
        }
        _multiline = code[meta.start..meta.end].Contains('\n');