Exemplo n.º 1
0
 static UnrealLinkResolver()
 {
     PairSymbol.Add(')', '(');
     PairSymbol.Add(']', '[');
     PairSymbol.Add('\'', '\'');
     PairSymbol.Add('"', '"');
 }
Exemplo n.º 2
0
        public void Add(FileSystemPath path, IPsiSourceFile file, Action <FileSystemChangeDelta> processFileChange)
        {
            if (ContainsPath(path))
            {
                return;
            }

            var fileLifetime = Lifetime.Define(myLifetime, path.FullPath);

            mySourceFiles.Add(path, Pair.Of(file, fileLifetime));

            // Explicitly assert if we're given a file change handler. We're expecting a lot of files in this module, it
            // will be much better to add a couple of directory change handlers than to add several thousand file change
            // handlers.
            // We also need to call the equivalent of PsiSourceFileWithLocationEx.TrackChanges, without registering
            // thousands of file change handlers.
            if (processFileChange != null)
            {
                Assertion.Fail("Individual file change handler not supported. Use a directory change handler");
            }
        }