LCOV - code coverage report
Current view: top level - gfx/skia/skia/src/sksl/ir - SkSLUnresolvedFunction.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 9 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright 2016 Google Inc.
       3             :  *
       4             :  * Use of this source code is governed by a BSD-style license that can be
       5             :  * found in the LICENSE file.
       6             :  */
       7             : 
       8             : #ifndef SKSL_UNRESOLVEDFUNCTION
       9             : #define SKSL_UNRESOLVEDFUNCTION
      10             : 
      11             : #include "SkSLFunctionDeclaration.h"
      12             : 
      13             : namespace SkSL {
      14             : 
      15             : /**
      16             :  * A symbol representing multiple functions with the same name.
      17             :  */
      18           0 : struct UnresolvedFunction : public Symbol {
      19           0 :     UnresolvedFunction(std::vector<const FunctionDeclaration*> funcs)
      20           0 :     : INHERITED(Position(), kUnresolvedFunction_Kind, funcs[0]->fName)
      21           0 :     , fFunctions(std::move(funcs)) {
      22             : #ifdef DEBUG
      23           0 :         for (auto func : funcs) {
      24           0 :             ASSERT(func->fName == fName);
      25             :         }
      26             : #endif
      27           0 :     }
      28             : 
      29           0 :     virtual String description() const override {
      30           0 :         return fName;
      31             :     }
      32             : 
      33             :     const std::vector<const FunctionDeclaration*> fFunctions;
      34             : 
      35             :     typedef Symbol INHERITED;
      36             : };
      37             : 
      38             : } // namespace
      39             : 
      40             : #endif

Generated by: LCOV version 1.13