Example #1
0
        public void NewVariable(VariableMetaData metaData)
        {
            if (!metaData.VariableVisibility.IsModuleProvidedAccessModifier()) {
                throw new IllegalStateException("Invalid visibility for variables");
            }

            var existing = Variables.Get(metaData.VariableName);
            if (existing != null) {
                throw new IllegalStateException(
                    "Duplicate variable definition for name '" + metaData.VariableName + "'");
            }

            Variables.Put(metaData.VariableName, metaData);
        }
 public VariableReaderPerCPCodegenFieldSharable(VariableMetaData metaWVisibility)
 {
     this.metaWVisibility = metaWVisibility;
 }