private bool IsPreprocessorSymbolDefined(InternalSyntax.DirectiveStack directives, string symbolName) { switch (directives.IsDefined(symbolName)) { case InternalSyntax.DefineState.Defined: return(true); case InternalSyntax.DefineState.Undefined: return(false); default: return(this.Options.PreprocessorSymbols.Contains(symbolName)); } }
private bool IsDefined(string id) { var defState = _context.IsDefined(id); switch (defState) { default: case DefineState.Unspecified: return this.Options.PreprocessorSymbols.Contains(id); case DefineState.Defined: return true; case DefineState.Undefined: return false; } }