Ejemplo n.º 1
0
 // Adds every syntax/bound pair in a tree rooted at the given bound node to the map, and the
 // performs a lookup of the given syntax node in the map.
 private BoundNode AddBoundTreeAndGetBoundNodeFromMap(SyntaxNode syntax, BoundNode bound)
 {
     using (nodeMapLock.DisposableWrite())
     {
         NodeMapBuilder.AddToMap(bound, this.guardedNodeMap);
         BoundNode result;
         this.guardedNodeMap.TryGetValue(syntax, out result);
         return(result);
     }
 }