Add a new state ElementState.Warning

Otherwise if a node in Error state, it won't be compiled to AST node.