Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
create_pkg_manifest.VarImpl Class Reference
Inheritance diagram for create_pkg_manifest.VarImpl:

Public Member Functions

def __init__ (self, local_scope)
 
def Lookup (self, var_name)
 

Detailed Description

Definition at line 24 of file create_pkg_manifest.py.

Constructor & Destructor Documentation

◆ __init__()

def create_pkg_manifest.VarImpl.__init__ (   self,
  local_scope 
)

Definition at line 30 of file create_pkg_manifest.py.

30 def __init__(self, local_scope):
31 self._local_scope = local_scope
32

Member Function Documentation

◆ Lookup()

def create_pkg_manifest.VarImpl.Lookup (   self,
  var_name 
)
Implements the Var syntax.

Definition at line 33 of file create_pkg_manifest.py.

33 def Lookup(self, var_name):
34 """Implements the Var syntax."""
35 if var_name in self._local_scope.get("vars", {}):
36 return self._local_scope["vars"][var_name]
37 # Inject default values for env variables
38 if var_name in self._env_vars:
39 return self._env_vars[var_name]
40 raise Exception("Var is not defined: %s" % var_name)
41
42
const myers::Point & get(const myers::Segment &)

The documentation for this class was generated from the following file: