Example #1
0
 /// <summary>
 /// Translates <see cref="QualifiedName"/> according to given naming.
 /// </summary>
 public static bool TryTranslateAlias(QualifiedName qname, NamingContext naming, out QualifiedName translated)
 {
     if (naming != null)
     {
         return(TryTranslateAlias(qname, AliasKind.Type, naming.Aliases, naming.CurrentNamespace, out translated));
     }
     translated = qname;
     return(false);
 }
Example #2
0
        public SourceUnit(string /*!*/ filePath, Encoding /*!*/ encoding, ILineBreaks /*!*/ lineBreaks)
        {
            Debug.Assert(filePath != null && encoding != null);
            Debug.Assert(lineBreaks != null);

            _filePath        = filePath;
            _encoding        = encoding;
            _innerLineBreaks = lineBreaks;
            _naming          = new NamingContext(null);
        }