MiniME.Compiler.RegisterIncludedFile C# (CSharp) Méthode

RegisterIncludedFile() public méthode

public RegisterIncludedFile ( string strFileName ) : void
strFileName string
Résultat void
        public void RegisterIncludedFile(string strFileName)
        {
            m_IncludedFiles.Add(strFileName);
        }

Usage Example

Exemple #1
0
        public void OpenIncludeFile(string text, string fileName)
        {
            // Register the included file
            Compiler.RegisterIncludedFile(fileName);

            // Save the current string parser
            m_IncludeStack.Push(p);

            // Prep the string scanner
            p = new StringScanner();
            p.Reset(text);
            p.FileName = fileName;

            // Used to detect line breaks between tokens for automatic
            // semicolon insertion
            m_bPreceededByLineBreak = true;
            m_prevTokenEnd          = 0;
        }