Exemplo n.º 1
0
        private Phrase CreatePhrase(FileSpan span)
        {
            Phrase phrase;

            if (string.IsNullOrEmpty(span.Content))
            {
                phrase      = new Phrase();
                phrase.Font = this.GetFont(span.FontName, span.FontSize, span.Color, span.FontStyle);
            }
            else
            {
                phrase = new Phrase(span.Content, this.GetFont(span.FontName, span.FontSize, span.Color, span.FontStyle));
            }
            this.SetPropertyFloat(span.Height, (height) => { phrase.Leading = height; });
            return(phrase);
        }
Exemplo n.º 2
0
 internal MemberProperty(string name, FileSpan loc, ISyntaxEntity parent, CodeFile currentCodeFile)
     : base(name, loc, parent, currentCodeFile)
 {
 }
Exemplo n.º 3
0
 public InheritableUserDefinedType(string text, FileSpan fileSpan, ISyntaxEntity parent, CodeFile currentCodeFile) : base(text, fileSpan, parent, currentCodeFile)
 {
     m_baseClasses = new List <string>();
 }
Exemplo n.º 4
0
 public EnumDefinition(string text, FileSpan fileSpan, ISyntaxEntity parent, CodeFile currentCodeFile) : base(text, fileSpan, parent, currentCodeFile)
 {
     m_enumMembers = new List <string>();
 }
Exemplo n.º 5
0
 public ElseBlock(string typeName, FileSpan fileLocation, ISyntaxEntity parent, CodeFile currentCodeFile)
     : base(typeName, fileLocation, parent, currentCodeFile)
 {
 }
Exemplo n.º 6
0
 public ClassDefinition(string text, FileSpan fileSpan, ISyntaxEntity parent, CodeFile currentCodeFile) : base(text, fileSpan, parent, currentCodeFile)
 {
 }
Exemplo n.º 7
0
 public Comment(string text, FileSpan span, ISyntaxEntity belongsTo, CodeFile currentCodeFile)
     : base(text, span, belongsTo, currentCodeFile)
 {
 }
Exemplo n.º 8
0
 public NamespaceDefinition(string typeName, FileSpan fileLocation, ISyntaxEntity parent, CodeFile currentCodeFile)
     : base(typeName, fileLocation, parent, currentCodeFile)
 {
 }
Exemplo n.º 9
0
 protected Variable(string name, FileSpan location, ISyntaxEntity parent, CodeFile currentCodeFile)
     : base(name, location, parent, currentCodeFile)
 {
 }
Exemplo n.º 10
0
 public UserDefinedType(string text, FileSpan fileSpan, ISyntaxEntity parent, CodeFile currentCodeFile)
     : base(text, fileSpan, parent, currentCodeFile)
 {
 }