public SourceUnion( UnionContext context, SourceSymbolContext sourceSymbolContext, bool isExported, DiagnosticBag diagnostics) : base(diagnostics) { _context = context; _sourceSymbolContext = sourceSymbolContext; _isExported = isExported; _options = new Lazy <ImmutableArray <IType> >(BindOptions); }
private void SetUnion(UnionContext union, string name, string varName) { if (union != null) { var dq = new DataCube(name, DataStatement.UNION, varName); bool isall = false; if (union.isall() != null) { isall = true; } dq.UnionStatement = new State.Union() { IsAll = isall, UnionData = union.data().GetText() }; DataCubes.Add(dq); } }