populateModelNodeFor method

void populateModelNodeFor(
  1. Element element,
  2. Map<String, CompilationUnit> compilationUnitMap
)

Implementation

void populateModelNodeFor(
    Element element, Map<String, CompilationUnit> compilationUnitMap) {
  _modelNodes.putIfAbsent(
      element,
      () => ModelNode(utils.getAstNode(element, compilationUnitMap), element,
          resourceProvider));
}