コード例 #1
0
 internal ParserExtension(MarkupCompiler compiler, 
     ParserContext parserContext, 
     BamlRecordWriter bamlWriter, 
     Stream xamlStream,
     bool pass2) :
     base(parserContext, bamlWriter, xamlStream, false)
 {
     _compiler = compiler;
     _pass2 = pass2;
     Debug.Assert(bamlWriter != null, "Need a BamlRecordWriter for compiling to Baml");
 }
コード例 #2
0
        internal LocalizationParserHooks(
            MarkupCompiler                  compiler ,
            LocalizationDirectivesToLocFile directivesToFile,
            bool                            isSecondPass
            )
        {               
            _compiler = compiler;            
            _directivesToFile = directivesToFile;  
            _isSecondPass = isSecondPass;

            // The arrray list holds all the comments collected while parsing Xaml.
            _commentList = new ArrayList();

            // It is the comments current being processed.
            _currentComment = new LocalizationComment();       
        }
コード例 #3
0
 // <summary>
 // ctor
 // </summary>
 internal CompilerWrapper()
 {
     _mc = new MarkupCompiler();
     _sourceDir = Directory.GetCurrentDirectory() + "\\";
     _nErrors = 0;
 }